Skip to main content

DeviceSurfaceCapsExt

Trait DeviceSurfaceCapsExt 

Source
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§

Source

fn device_profile(&self) -> DeviceProfile

Builds the typed profile for these surface capabilities.

Source

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".

Implementations on Foreign Types§

Source§

impl DeviceSurfaceCapsExt for SurfaceCaps

Implementors§