pub struct PaletteDefinitionSegment {
pub id: u8,
pub version: u8,
pub rgba: Vec<u32>,
}Expand description
Palette Definition Segment contains color palette entries.
Fields§
§id: u8Palette ID (0-7)
version: u8Version number for this palette
rgba: Vec<u32>RGBA colors indexed by palette entry ID (up to 256 entries) Stored as packed u32: [R, G, B, A] in little-endian byte order
Implementations§
Trait Implementations§
Source§impl Clone for PaletteDefinitionSegment
impl Clone for PaletteDefinitionSegment
Source§fn clone(&self) -> PaletteDefinitionSegment
fn clone(&self) -> PaletteDefinitionSegment
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 moreAuto Trait Implementations§
impl Freeze for PaletteDefinitionSegment
impl RefUnwindSafe for PaletteDefinitionSegment
impl Send for PaletteDefinitionSegment
impl Sync for PaletteDefinitionSegment
impl Unpin for PaletteDefinitionSegment
impl UnsafeUnpin for PaletteDefinitionSegment
impl UnwindSafe for PaletteDefinitionSegment
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