pub trait PathExt: Sealed {
// Required method
fn display_lossy(&self) -> Display<'_>;
}
Expand description
Renaming of Path::display
as display_lossy
Required Methods§
Sourcefn display_lossy(&self) -> Display<'_>
fn display_lossy(&self) -> Display<'_>
Display this Path
as an approximate string, for human consumption in messages
Operating system paths cannot always be faithfully represented as Rust strings, because they might not be valid Unicode.
This helper method provides a way to display a string for human users. This may lose information so should only be used for error messages etc.
This method is exactly the same as std::path::Path::display
,
but with a different and more discouraging name.