[−][src]Struct img2raw::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]
fn from(color_space: ColorSpace) -> Self
[src]
impl Debug for ColorSpaceInfo
[src]
impl PartialEq<ColorSpaceInfo> for ColorSpaceInfo
[src]
fn eq(&self, other: &ColorSpaceInfo) -> bool
[src]
fn ne(&self, other: &ColorSpaceInfo) -> bool
[src]
impl Eq for ColorSpaceInfo
[src]
impl Hash for ColorSpaceInfo
[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 ColorSpaceInfo
[src]
impl Clone for ColorSpaceInfo
[src]
fn clone(&self) -> ColorSpaceInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl AsBytes for ColorSpaceInfo
[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 ColorSpaceInfo
[src]
fn only_derive_is_allowed_to_implement_this_trait() where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl Unpin for ColorSpaceInfo
impl Send for ColorSpaceInfo
impl Sync for ColorSpaceInfo
impl UnwindSafe for ColorSpaceInfo
impl RefUnwindSafe for ColorSpaceInfo
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,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,