pub trait DisplayExt<D> {
// Provided method
fn display(&self) -> Carrier<'_, Self, D> { ... }
}
Expand description
A trait extension which adds a method like Path::display does this for any type. Its method returns an object that implements Display and can be used for formatting.
Provided Methods§
Sourcefn display(&self) -> Carrier<'_, Self, D>
fn display(&self) -> Carrier<'_, Self, D>
Returns a wrapper that implements Display via CustomDisplay.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.