pub struct Palette<'a> {
pub index: i32,
pub overrides: &'a [Override],
}Expand description
Specifies a palette to use and overrides for palette entries.
overrides is a list of pairs of palette entry index and color.
Overridden palette entries use the associated color.
Override pairs with palette entry indices out of range are not applied. Later override entries override earlier ones.
Fields§
§index: i32§overrides: &'a [Override]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Palette<'a>
impl<'a> RefUnwindSafe for Palette<'a>
impl<'a> Send for Palette<'a>
impl<'a> Sync for Palette<'a>
impl<'a> Unpin for Palette<'a>
impl<'a> UnsafeUnpin for Palette<'a>
impl<'a> UnwindSafe for Palette<'a>
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