Struct std::path::Display 1.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]
impl<'a> Debug for Display<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Display for Display<'a>
[src]
impl<'a> Display for Display<'a>