Struct std::path::Display1.0.0[][src]

pub struct Display<'a> { /* fields omitted */ }

Helper struct for safely printing paths with format! and {}.

A Path might contain non-Unicode data. This struct implements the Display trait in a way that mitigates that. It is created by the display method on Path.

Examples

use std::path::Path;

let path = Path::new("/tmp/foo.rs");

println!("{}", path.display());Run

Trait Implementations

impl<'a> Debug for Display<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Display for Display<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for Display<'a>

impl<'a> Sync for Display<'a>