pub struct ColorPrimaries(pub NonZeroU32);
Tuple Fields§
§0: NonZeroU32
Implementations§
Source§impl ColorPrimaries
impl ColorPrimaries
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
pub fn new(x: u32) -> Option<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§impl PartialOrd for ColorPrimaries
impl PartialOrd for ColorPrimaries
impl Copy for ColorPrimaries
impl Eq for ColorPrimaries
impl StructuralPartialEq for ColorPrimaries
Auto Trait Implementations§
impl Freeze for ColorPrimaries
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