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.