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());
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts the given value to a String. Read more
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (try_from)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from)
Mutably borrows from an owned value. Read more