Struct ktx2::ColorPrimaries
source · pub struct ColorPrimaries(pub NonZeroU32);
Tuple Fields§
§0: NonZeroU32
Implementations§
source§impl ColorPrimaries
impl ColorPrimaries
pub fn new(x: u32) -> Option<Self>
pub const BT709: Self = _
pub const BT601EBU: Self = _
pub const BT601SMPTE: Self = _
pub const BT2020: Self = _
pub const CIEXYZ: Self = _
pub const ACES: Self = _
pub const ACESCC: Self = _
pub const NTSC1953: Self = _
pub const PAL525: Self = _
pub const DISPLAYP3: Self = _
pub const AdobeRGB: Self = _
Trait Implementations§
source§impl Clone for ColorPrimaries
impl Clone for ColorPrimaries
source§fn clone(&self) -> ColorPrimaries
fn clone(&self) -> ColorPrimaries
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 ColorPrimaries
impl Debug for ColorPrimaries
source§impl Hash for ColorPrimaries
impl Hash for ColorPrimaries
source§impl Ord for ColorPrimaries
impl Ord for ColorPrimaries
source§fn cmp(&self, other: &ColorPrimaries) -> Ordering
fn cmp(&self, other: &ColorPrimaries) -> 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 ColorPrimaries
impl PartialEq for ColorPrimaries
source§fn eq(&self, other: &ColorPrimaries) -> bool
fn eq(&self, other: &ColorPrimaries) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ColorPrimaries
impl PartialOrd for ColorPrimaries
source§fn partial_cmp(&self, other: &ColorPrimaries) -> Option<Ordering>
fn partial_cmp(&self, other: &ColorPrimaries) -> 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 ColorPrimaries
impl Eq for ColorPrimaries
impl StructuralEq for ColorPrimaries
impl StructuralPartialEq for ColorPrimaries
Auto Trait Implementations§
impl RefUnwindSafe for ColorPrimaries
impl Send for ColorPrimaries
impl Sync for ColorPrimaries
impl Unpin for ColorPrimaries
impl UnwindSafe for ColorPrimaries
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