#[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
Source§fn clone(&self) -> ColorPaletteMask
fn clone(&self) -> ColorPaletteMask
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ColorPaletteMask
Source§impl Debug for ColorPaletteMask
impl Debug for ColorPaletteMask
Source§impl Default for ColorPaletteMask
impl Default for ColorPaletteMask
Source§fn default() -> ColorPaletteMask
fn default() -> ColorPaletteMask
Returns the “default value” for a type. Read more
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