pub trait Formatted {
type Surface: SurfaceTyped;
type Channel: ChannelTyped;
type View;
// Provided method
fn get_format() -> Format { ... }
}Expand description
Compile-time full format trait.
Required Associated Types§
Sourcetype Surface: SurfaceTyped
type Surface: SurfaceTyped
Associated surface type.
Sourcetype Channel: ChannelTyped
type Channel: ChannelTyped
Associated channel type.
Provided Methods§
Sourcefn get_format() -> Format
fn get_format() -> Format
Return the run-time value of the type.
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.