pub struct MaskData<'a> {
pub bpp: u8,
pub is_packed: bool,
pub data: &'a [u8],
}
Expand description
A single channel alpha mask.
Fields§
§bpp: u8
Number of bits-per-pixel. Always 1, 2, 4 or 8.
is_packed: bool
True if each row of the data is bit-aligned. Otherwise, each row is padded to the next byte.
data: &'a [u8]
Raw bitmap data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MaskData<'a>
impl<'a> RefUnwindSafe for MaskData<'a>
impl<'a> Send for MaskData<'a>
impl<'a> Sync for MaskData<'a>
impl<'a> Unpin for MaskData<'a>
impl<'a> UnwindSafe for MaskData<'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