pub trait SurfaceTypeTrait: Sealed {
// Required method
fn surface_type() -> SurfaceType;
}
Expand description
The marker trait to indicate the type of the surface.
Required Methods§
Sourcefn surface_type() -> SurfaceType
fn surface_type() -> SurfaceType
Get the type of the surface.
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.