pub struct MaskChunk<'a> {
pub x: Short,
pub y: Short,
pub width: Word,
pub height: Word,
pub name: &'a str,
pub data: &'a [u8],
}
Fields§
§x: Short
X position
y: Short
Y position
width: Word
Width
height: Word
Height
name: &'a str
Mask name
data: &'a [u8]
Bit map data (size = height*((width+7)/8)) Each byte contains 8 pixels (the leftmost pixels are packed into the high order bits)
Important: The length of the data is NOT checked by
the parser. If you really need this you should make
sure that data.len() == height * ((width + 7) / 8
is true.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MaskChunk<'a>
impl<'a> RefUnwindSafe for MaskChunk<'a>
impl<'a> Send for MaskChunk<'a>
impl<'a> Sync for MaskChunk<'a>
impl<'a> Unpin for MaskChunk<'a>
impl<'a> UnwindSafe for MaskChunk<'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
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