pub struct PaletteIndex(pub u8);Expand description
Palette color index (0-255).
Tuple Fields§
§0: u8Implementations§
Source§impl PaletteIndex
impl PaletteIndex
pub const BLACK: PaletteIndex
pub const RED: PaletteIndex
pub const GREEN: PaletteIndex
pub const YELLOW: PaletteIndex
pub const BLUE: PaletteIndex
pub const MAGENTA: PaletteIndex
pub const CYAN: PaletteIndex
pub const WHITE: PaletteIndex
pub const BRIGHT_BLACK: PaletteIndex
pub const BRIGHT_RED: PaletteIndex
pub const BRIGHT_GREEN: PaletteIndex
pub const BRIGHT_YELLOW: PaletteIndex
pub const BRIGHT_BLUE: PaletteIndex
pub const BRIGHT_MAGENTA: PaletteIndex
pub const BRIGHT_CYAN: PaletteIndex
pub const BRIGHT_WHITE: PaletteIndex
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 PartialEq for PaletteIndex
impl PartialEq 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 UnsafeUnpin 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