pub struct ColorModel(pub NonZeroU32);
Tuple Fields§
§0: NonZeroU32
Implementations§
Source§impl ColorModel
impl ColorModel
pub const RGBSDA: Self
pub const YUVSDA: Self
pub const YIQSDA: Self
pub const LabSDA: Self
pub const CMYKA: Self
pub const XYZW: Self
pub const HSVAAng: Self
pub const HSLAAng: Self
pub const HSVAHex: Self
pub const HSLAHex: Self
pub const YCgCoA: Self
pub const YcCbcCrc: Self
pub const ICtCp: Self
pub const CIEXYZ: Self
pub const CIEXYY: Self
pub const BC1A: Self
pub const BC2: Self
pub const BC3: Self
pub const BC4: Self
pub const BC5: Self
pub const BC6H: Self
pub const BC7: Self
pub const ETC1: Self
pub const ETC2: Self
pub const ASTC: Self
pub const ETC1S: Self
pub const PVRTC: Self
pub const PVRTC2: Self
pub const UASTC: Self
pub fn new(x: u32) -> Option<Self>
Trait Implementations§
Source§impl Clone for ColorModel
impl Clone for ColorModel
Source§fn clone(&self) -> ColorModel
fn clone(&self) -> ColorModel
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 ColorModel
impl Debug for ColorModel
Source§impl Hash for ColorModel
impl Hash for ColorModel
Source§impl Ord for ColorModel
impl Ord for ColorModel
Source§fn cmp(&self, other: &ColorModel) -> Ordering
fn cmp(&self, other: &ColorModel) -> 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 ColorModel
impl PartialEq for ColorModel
Source§impl PartialOrd for ColorModel
impl PartialOrd for ColorModel
impl Copy for ColorModel
impl Eq for ColorModel
impl StructuralPartialEq for ColorModel
Auto Trait Implementations§
impl Freeze for ColorModel
impl RefUnwindSafe for ColorModel
impl Send for ColorModel
impl Sync for ColorModel
impl Unpin for ColorModel
impl UnwindSafe for ColorModel
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