Struct std::path::DisplayExperimental [-]  [+] [src]

pub struct Display<'a, P: 'a> {
    // some fields omitted
}

Helper struct for printing paths with format!()

Methods

impl<'a, P: GenericPath> Display<'a, P>

fn as_cow(&self) -> CowString<'a>

Returns the path as a possibly-owned string.

If the path is not UTF-8, invalid sequences will be replaced with the Unicode replacement char. This involves allocation.

Trait Implementations

impl<'a, P: GenericPath> Show for Display<'a, P>

fn fmt(&self, f: &mut Formatter) -> Result