pub struct PaletteMask(/* private fields */);Expand description
A 256-bit mask of palette indices.
The mask is typically initialized to zero and then populated with
PaletteMask::set.
Implementations§
Source§impl PaletteMask
impl PaletteMask
Sourcepub fn set(&mut self, index: PaletteIndex)
pub fn set(&mut self, index: PaletteIndex)
Set a palette index in this mask.
Sourcepub fn is_set(self, index: PaletteIndex) -> bool
pub fn is_set(self, index: PaletteIndex) -> bool
Return whether a palette index is set in this mask.
Trait Implementations§
Source§impl Clone for PaletteMask
impl Clone for PaletteMask
impl Copy for PaletteMask
Source§impl Debug for PaletteMask
impl Debug for PaletteMask
Source§impl Default for PaletteMask
impl Default for PaletteMask
impl Eq for PaletteMask
Auto Trait Implementations§
impl Freeze for PaletteMask
impl RefUnwindSafe for PaletteMask
impl Send for PaletteMask
impl Sync for PaletteMask
impl Unpin for PaletteMask
impl UnsafeUnpin for PaletteMask
impl UnwindSafe for PaletteMask
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