pub trait DisplayAs<F: Format> {
// Required method
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
// Provided methods
fn estimate_size(&self) -> usize { ... }
fn display<'a>(&'a self) -> As<'a, F, Self> { ... }
}
Required Methods§
Provided Methods§
Sourcefn estimate_size(&self) -> usize
fn estimate_size(&self) -> usize
Estimate the size of this when displayed
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.