pub struct Palette<'a> {
cpal: &'a Cpal<'a>,
colors: &'a [Color],
index: u32,
}Expand description
A single color palette.
Fields§
§cpal: &'a Cpal<'a>§colors: &'a [Color]The color records for this palette.
index: u32The palette index in the table.
Implementations§
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