pub trait IScreenInfoProvider {
// Required method
fn scaled_size(&self) -> Size;
// Provided method
fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation> { ... }
}Required Methods§
fn scaled_size(&self) -> Size
Provided Methods§
Sourcefn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation>
fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation>
The screen as one that has an orientation (the reference tests the type).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".