[][src]Struct img2raw::ColorSpaceInfo

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

Color space 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 ColorSpaceInfo[src]

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

Returns the inner color space if it is valid.

Trait Implementations

impl From<ColorSpace> for ColorSpaceInfo[src]

impl Debug for ColorSpaceInfo[src]

impl PartialEq<ColorSpaceInfo> for ColorSpaceInfo[src]

impl Eq for ColorSpaceInfo[src]

impl Hash for ColorSpaceInfo[src]

impl Copy for ColorSpaceInfo[src]

impl Clone for ColorSpaceInfo[src]

impl AsBytes for ColorSpaceInfo[src]

impl FromBytes for ColorSpaceInfo[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]