[][src]Struct img2raw::DataFormatInfo

#[repr(transparent)]
pub struct DataFormatInfo(_);

Data format information stored in a header.

The header might not be valid, so this is an intermediate struct which is used to catch invalid bit patterns not representable by any enum variant.

Methods

impl DataFormatInfo[src]

pub fn try_parse(self) -> Option<DataFormat>[src]

Returns the inner data format if it is valid.

Trait Implementations

impl From<DataFormat> for DataFormatInfo[src]

impl Debug for DataFormatInfo[src]

impl PartialEq<DataFormatInfo> for DataFormatInfo[src]

impl Eq for DataFormatInfo[src]

impl Hash for DataFormatInfo[src]

impl Copy for DataFormatInfo[src]

impl Clone for DataFormatInfo[src]

impl AsBytes for DataFormatInfo[src]

impl FromBytes for DataFormatInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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