Enum qoi::types::ColorSpace
source · #[repr(u8)]pub enum ColorSpace {
Srgb = 0,
Linear = 1,
}
Expand description
Image color space.
Note: the color space is purely informative. Although it is saved to the file header, it does not affect encoding/decoding in any way.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ColorSpace
impl Clone for ColorSpace
source§fn clone(&self) -> ColorSpace
fn clone(&self) -> ColorSpace
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColorSpace
impl Debug for ColorSpace
source§impl Default for ColorSpace
impl Default for ColorSpace
source§impl From<ColorSpace> for u8
impl From<ColorSpace> for u8
source§fn from(colorspace: ColorSpace) -> Self
fn from(colorspace: ColorSpace) -> Self
Converts to this type from the input type.
source§impl Hash for ColorSpace
impl Hash for ColorSpace
source§impl Ord for ColorSpace
impl Ord for ColorSpace
source§fn cmp(&self, other: &ColorSpace) -> Ordering
fn cmp(&self, other: &ColorSpace) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ColorSpace
impl PartialEq for ColorSpace
source§fn eq(&self, other: &ColorSpace) -> bool
fn eq(&self, other: &ColorSpace) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ColorSpace
impl PartialOrd for ColorSpace
source§fn partial_cmp(&self, other: &ColorSpace) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorSpace) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<u8> for ColorSpace
impl TryFrom<u8> for ColorSpace
impl Copy for ColorSpace
impl Eq for ColorSpace
impl StructuralPartialEq for ColorSpace
Auto Trait Implementations§
impl Freeze for ColorSpace
impl RefUnwindSafe for ColorSpace
impl Send for ColorSpace
impl Sync for ColorSpace
impl Unpin for ColorSpace
impl UnwindSafe for ColorSpace
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more