Struct std::path::Display 1.0.0
[−]
[src]
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