Struct std::old_path::DisplayUnstable [-] [+] [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> Debug for Display<'a, P>

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

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

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