pub struct Bitmap {
pub pixels: Vec<Vec<bool>>,
pub width: usize,
pub height: usize,
}Expand description
Bitmap representation of a glyph as a 2D boolean array.
Pixels are stored row-by-row, with true representing foreground pixels
and false representing background pixels.
Fields§
§pixels: Vec<Vec<bool>>§width: usize§height: usizeImplementations§
Trait Implementations§
impl Eq for Bitmap
impl StructuralPartialEq for Bitmap
Auto Trait Implementations§
impl Freeze for Bitmap
impl RefUnwindSafe for Bitmap
impl Send for Bitmap
impl Sync for Bitmap
impl Unpin for Bitmap
impl UnwindSafe for Bitmap
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