Enum drm_fourcc::DrmFourcc [−][src]
Variants
Implementations
impl DrmFourcc
[src]
pub fn string_form(&self) -> String
[src]
Get the string representation of the format’s fourcc.
Trait Implementations
impl Clone for DrmFourcc
[src]
impl Copy for DrmFourcc
[src]
impl Debug for DrmFourcc
[src]
impl Display for DrmFourcc
[src]
impl Eq for DrmFourcc
[src]
impl PartialEq<DrmFourcc> for DrmFourcc
[src]
fn eq(&self, other: &DrmFourcc) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for DrmFourcc
[src]
impl StructuralPartialEq for DrmFourcc
[src]
impl TryFrom<u32> for DrmFourcc
[src]
type Error = UnrecognizedFourcc
The type returned in the event of a conversion error.
fn try_from(value: u32) -> Result<Self, Self::Error>
[src]
Convert from an u32
assert_eq!(DrmFourcc::try_from(875710274).unwrap(), DrmFourcc::Bgr888); assert!(DrmFourcc::try_from(0).is_err()); // If the u32 is in the valid format to be a fourcc, you can see its string form assert_eq!(DrmFourcc::try_from(828601953).unwrap_err().string_form(), Some("avc1".to_string()));
Auto Trait Implementations
impl RefUnwindSafe for DrmFourcc
impl Send for DrmFourcc
impl Sync for DrmFourcc
impl Unpin for DrmFourcc
impl UnwindSafe for DrmFourcc
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,