Struct drm_fourcc::UnrecognizedFourcc[][src]

pub struct UnrecognizedFourcc(pub u32);

Wraps some u32 that isn’t a DRM fourcc we recognize

// Get the u32
assert_eq!(UnrecognizedFourcc(42).0, 42);

// Get the string form
assert_eq!(UnrecognizedFourcc(828601953).string_form(), Some("avc1".to_string()));
assert_eq!(UnrecognizedFourcc(0).string_form(), None);

Implementations

impl UnrecognizedFourcc[src]

pub fn string_form(&self) -> Option<String>[src]

If the u32 is in a valid format to be a fourcc, get its string form.

Trait Implementations

impl Clone for UnrecognizedFourcc[src]

impl Copy for UnrecognizedFourcc[src]

impl Debug for UnrecognizedFourcc[src]

impl Display for UnrecognizedFourcc[src]

impl Eq for UnrecognizedFourcc[src]

impl Error for UnrecognizedFourcc[src]

impl PartialEq<UnrecognizedFourcc> for UnrecognizedFourcc[src]

impl StructuralEq for UnrecognizedFourcc[src]

impl StructuralPartialEq for UnrecognizedFourcc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.