pub trait SurfaceTyped {
type DataType: Pod;
// Required method
fn get_surface_type() -> SurfaceType;
}Expand description
Compile-time surface type trait.
Required Associated Types§
Required Methods§
Sourcefn get_surface_type() -> SurfaceType
fn get_surface_type() -> SurfaceType
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.