Struct gfx_hal::format::DrmFormatProperties
source · [−]pub struct DrmFormatProperties {
pub drm_modifier: DrmModifier,
pub plane_count: u32,
pub valid_usages: ImageFeature,
}
Expand description
Drm format properties
Fields
drm_modifier: DrmModifier
Drm format modifier.
plane_count: u32
Number of memory planes each image crated with drm_modifier
has.
valid_usages: ImageFeature
Valid image usage with the drm_modifier
.
Trait Implementations
sourceimpl Clone for DrmFormatProperties
impl Clone for DrmFormatProperties
sourcefn clone(&self) -> DrmFormatProperties
fn clone(&self) -> DrmFormatProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DrmFormatProperties
impl Debug for DrmFormatProperties
sourceimpl Default for DrmFormatProperties
impl Default for DrmFormatProperties
sourceimpl Hash for DrmFormatProperties
impl Hash for DrmFormatProperties
sourceimpl PartialEq<DrmFormatProperties> for DrmFormatProperties
impl PartialEq<DrmFormatProperties> for DrmFormatProperties
sourcefn eq(&self, other: &DrmFormatProperties) -> bool
fn eq(&self, other: &DrmFormatProperties) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DrmFormatProperties) -> bool
fn ne(&self, other: &DrmFormatProperties) -> bool
This method tests for !=
.
impl Eq for DrmFormatProperties
impl StructuralEq for DrmFormatProperties
impl StructuralPartialEq for DrmFormatProperties
Auto Trait Implementations
impl RefUnwindSafe for DrmFormatProperties
impl Send for DrmFormatProperties
impl Sync for DrmFormatProperties
impl Unpin for DrmFormatProperties
impl UnwindSafe for DrmFormatProperties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more