pub struct PaletteIndex(pub u32);
Expand description
A palette index.
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Clone for PaletteIndex
impl Clone for PaletteIndex
Source§fn clone(&self) -> PaletteIndex
fn clone(&self) -> PaletteIndex
Returns a duplicate 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 PaletteIndex
impl Debug for PaletteIndex
Source§impl Hash for PaletteIndex
impl Hash for PaletteIndex
Source§impl Ord for PaletteIndex
impl Ord for PaletteIndex
Source§fn cmp(&self, other: &PaletteIndex) -> Ordering
fn cmp(&self, other: &PaletteIndex) -> 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 PaletteIndex
impl PartialEq for PaletteIndex
Source§impl PartialOrd for PaletteIndex
impl PartialOrd for PaletteIndex
impl Copy for PaletteIndex
impl Eq for PaletteIndex
impl StructuralPartialEq for PaletteIndex
Auto Trait Implementations§
impl Freeze for PaletteIndex
impl RefUnwindSafe for PaletteIndex
impl Send for PaletteIndex
impl Sync for PaletteIndex
impl Unpin for PaletteIndex
impl UnwindSafe for PaletteIndex
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