Struct tic80::PalettePair
source · pub struct PalettePair { /* private fields */ }
Implementations§
source§impl PalettePair
impl PalettePair
pub fn new(low: PaletteIdx, high: PaletteIdx) -> Self
pub fn low(&self) -> PaletteIdx
pub fn set_low(&mut self, value: PaletteIdx)
pub fn high(&self) -> PaletteIdx
pub fn set_high(&mut self, value: PaletteIdx)
Trait Implementations§
source§impl Bitsized for PalettePair
impl Bitsized for PalettePair
source§impl Clone for PalettePair
impl Clone for PalettePair
source§fn clone(&self) -> PalettePair
fn clone(&self) -> PalettePair
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 PalettePair
impl Debug for PalettePair
source§impl From<PalettePair> for u8
impl From<PalettePair> for u8
source§fn from(value: PalettePair) -> Self
fn from(value: PalettePair) -> Self
Converts to this type from the input type.
source§impl From<u8> for PalettePair
impl From<u8> for PalettePair
source§impl PartialEq for PalettePair
impl PartialEq for PalettePair
source§fn eq(&self, other: &PalettePair) -> bool
fn eq(&self, other: &PalettePair) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PalettePair
impl StructuralPartialEq for PalettePair
Auto Trait Implementations§
impl RefUnwindSafe for PalettePair
impl Send for PalettePair
impl Sync for PalettePair
impl Unpin for PalettePair
impl UnwindSafe for PalettePair
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