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.
use std::path::Path;
let path = Path::new("/tmp/foo.rs");
println!("{}", path.display());Run
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (
try_from #33417)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (
try_from #33417)
🔬 This is a nightly-only experimental API. (
try_from #33417)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (
try_from #33417)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id #27745)
this method will likely be replaced by an associated static
Converts the given value to a String. Read more