Struct drm_fourcc::UnrecognizedModifier [−][src]
pub struct UnrecognizedModifier(pub u64);
Expand description
Wraps some u64 that isn’t a DRM modifier we recognize
// Get the u64
assert_eq!(UnrecognizedModifier(42).0, 42);
Tuple Fields
0: u64
Implementations
Get the vendor of the unrecognized modifier, if any
assert_eq!(UnrecognizedModifier(216172782113783827).vendor(), Ok(Some(DrmVendor::Nvidia)));
assert_eq!(UnrecognizedModifier(2).vendor(), Ok(None));
assert_eq!(UnrecognizedModifier(8646911284551352320).vendor(), Err(UnrecognizedVendor(120)));
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UnrecognizedModifier
impl Send for UnrecognizedModifier
impl Sync for UnrecognizedModifier
impl Unpin for UnrecognizedModifier
impl UnwindSafe for UnrecognizedModifier
Blanket Implementations
Mutably borrows from an owned value. Read more