pub struct OldPaletteChunk {
pub packets: Vec<Packet>,
}
Expand description
Ignore this chunk if you find the new palette chunk (0x2019) Aseprite v1.1 saves both chunks 0x0004 and 0x2019 just for backward compatibility.
Both old palette chunks are stored in this structure as their only difference is the color range. Colors in the 0x0004 version of the chunk range from 0-255 while colors in the 0x0011 version range from 0-63.
Fields§
§packets: Vec<Packet>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OldPaletteChunk
impl RefUnwindSafe for OldPaletteChunk
impl Send for OldPaletteChunk
impl Sync for OldPaletteChunk
impl Unpin for OldPaletteChunk
impl UnwindSafe for OldPaletteChunk
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more