pub trait DeviceSurfaceCapsExt {
// Required methods
fn device_profile(&self) -> DeviceProfile;
fn device_rate(&self) -> RateClass;
}Expand description
Extension methods that view SurfaceCaps as a device profile.
Required Methods§
Sourcefn device_profile(&self) -> DeviceProfile
fn device_profile(&self) -> DeviceProfile
Builds the typed profile for these surface capabilities.
Sourcefn device_rate(&self) -> RateClass
fn device_rate(&self) -> RateClass
Reads the timing envelope, using the safe default when missing or malformed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".