pub trait Displayable {
type Displayable: Display;
// Required method
fn displayable(self) -> Self::Displayable;
}Expand description
Extension trait for converting a type into a displayable form.
Required Associated Types§
Sourcetype Displayable: Display
type Displayable: Display
The displayable form of the type.
Required Methods§
Sourcefn displayable(self) -> Self::Displayable
fn displayable(self) -> Self::Displayable
Converts the type into its displayable form.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".