Struct ktx2::ColorModel
source · pub struct ColorModel(pub NonZeroU32);
Tuple Fields§
§0: NonZeroU32
Implementations§
source§impl ColorModel
impl ColorModel
pub fn new(x: u32) -> Option<Self>
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 = _
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§fn eq(&self, other: &ColorModel) -> bool
fn eq(&self, other: &ColorModel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ColorModel
impl PartialOrd for ColorModel
source§fn partial_cmp(&self, other: &ColorModel) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorModel) -> 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 moreimpl Copy for ColorModel
impl Eq for ColorModel
impl StructuralEq for ColorModel
impl StructuralPartialEq for ColorModel
Auto Trait Implementations§
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