#[repr(C)]pub struct ColorPaletteMask {
pub bits: [u64; 4],
}Expand description
A 256-bit mask of palette indices.
Index i is set iff (bits[i >> 6] >> (i & 63)) & 1 is 1.
The mask is typically initialized to zero and then populated with
GHOSTTY_COLOR_PALETTE_MASK_SET().
GhosttyColorPaletteMask mask = {0}; GHOSTTY_COLOR_PALETTE_MASK_SET(&mask, 20); if (GHOSTTY_COLOR_PALETTE_MASK_IS_SET(&mask, 20)) { // Index 20 will be preserved. }
Fields§
§bits: [u64; 4]Trait Implementations§
Source§impl Clone for ColorPaletteMask
impl Clone for ColorPaletteMask
impl Copy for ColorPaletteMask
Source§impl Debug for ColorPaletteMask
impl Debug for ColorPaletteMask
Auto Trait Implementations§
impl Freeze for ColorPaletteMask
impl RefUnwindSafe for ColorPaletteMask
impl Send for ColorPaletteMask
impl Sync for ColorPaletteMask
impl Unpin for ColorPaletteMask
impl UnsafeUnpin for ColorPaletteMask
impl UnwindSafe for ColorPaletteMask
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