Struct ntcip::dms::CharacterEntry
source · pub struct CharacterEntry {
pub number: u16,
pub width: u8,
pub bitmap: Vec<u8>,
}
Expand description
Character for a bitmap font
Fields§
§number: u16
Character number (code point) — characterNumber
width: u8
Width (pixels) — characterWidth
bitmap: Vec<u8>
Bitmap data (by rows) — characterBitmap
Implementations§
source§impl CharacterEntry
impl CharacterEntry
sourcepub fn is_pixel_lit(&self, row: usize, col: usize) -> bool
pub fn is_pixel_lit(&self, row: usize, col: usize) -> bool
Check if a pixel is lit
Trait Implementations§
source§impl Clone for CharacterEntry
impl Clone for CharacterEntry
source§fn clone(&self) -> CharacterEntry
fn clone(&self) -> CharacterEntry
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CharacterEntry
impl Default for CharacterEntry
source§fn default() -> CharacterEntry
fn default() -> CharacterEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CharacterEntry
impl RefUnwindSafe for CharacterEntry
impl Send for CharacterEntry
impl Sync for CharacterEntry
impl Unpin for CharacterEntry
impl UnwindSafe for CharacterEntry
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