pub enum Pixels<'a> {
Png(&'a [u8]),
Bgra(Bgra<'a>),
Mask(Mask<'a>),
}Expand description
Pixel data for a bitmap glyph.
Variants§
Png(&'a [u8])
A PNG image.
Bgra(Bgra<'a>)
Uncompressed 32-bit color.
Mask(Mask<'a>)
A single channel coverage mask.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Pixels<'a>
impl<'a> RefUnwindSafe for Pixels<'a>
impl<'a> Send for Pixels<'a>
impl<'a> Sync for Pixels<'a>
impl<'a> Unpin for Pixels<'a>
impl<'a> UnsafeUnpin for Pixels<'a>
impl<'a> UnwindSafe for Pixels<'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