[−][src]Struct img2raw::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]
fn from(data_format: DataFormat) -> Self
[src]
impl Debug for DataFormatInfo
[src]
impl PartialEq<DataFormatInfo> for DataFormatInfo
[src]
fn eq(&self, other: &DataFormatInfo) -> bool
[src]
fn ne(&self, other: &DataFormatInfo) -> bool
[src]
impl Eq for DataFormatInfo
[src]
impl Hash for DataFormatInfo
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Copy for DataFormatInfo
[src]
impl Clone for DataFormatInfo
[src]
fn clone(&self) -> DataFormatInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl AsBytes for DataFormatInfo
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
fn as_bytes(&self) -> &[u8]
[src]
fn as_bytes_mut(&mut self) -> &mut [u8] where
Self: FromBytes,
[src]
Self: FromBytes,
impl FromBytes for DataFormatInfo
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,