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§impl PartialOrd for ColorSpace
impl PartialOrd for ColorSpace
source§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)