pub struct ColorData<'a, const N: usize> {
pub indices: [&'a [PaletteIndex]; N],
pub palette: &'a [Rgb],
}Expand description
View of indexed color data and palette.
Fields§
§indices: [&'a [PaletteIndex]; N]Indexed color data for each mip level (or single level for pictures).
palette: &'a [Rgb]Palette mapping indices to RGB colors.
Auto Trait Implementations§
impl<'a, const N: usize> Freeze for ColorData<'a, N>
impl<'a, const N: usize> RefUnwindSafe for ColorData<'a, N>
impl<'a, const N: usize> Send for ColorData<'a, N>
impl<'a, const N: usize> Sync for ColorData<'a, N>
impl<'a, const N: usize> Unpin for ColorData<'a, N>
impl<'a, const N: usize> UnsafeUnpin for ColorData<'a, N>
impl<'a, const N: usize> UnwindSafe for ColorData<'a, N>
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