Struct embedded_graphics::fonts::Font6x8
source · [−]pub struct Font6x8;
Expand description
Trait Implementations
sourceimpl Font for Font6x8
impl Font for Font6x8
sourceconst FONT_IMAGE: &'static [u8]
const FONT_IMAGE: &'static [u8]
Raw image data containing the font.
sourceconst FONT_IMAGE_WIDTH: u32
const FONT_IMAGE_WIDTH: u32
The width of the raw image data. Read more
sourceconst CHARACTER_SIZE: Size
const CHARACTER_SIZE: Size
Size of a single character in pixel.
sourcefn char_offset(c: char) -> u32
fn char_offset(c: char) -> u32
Returns the position a character in the font.
sourceconst CHARACTER_SPACING: u32
const CHARACTER_SPACING: u32
Spacing between characters. Read more
sourceconst VARIABLE_WIDTH: bool
const VARIABLE_WIDTH: bool
Whether characters have a variable width or not. Read more
sourcefn char_width(c: char) -> u32
fn char_width(c: char) -> u32
Returns the actual width of a character in the font.
sourceimpl Ord for Font6x8
impl Ord for Font6x8
sourceimpl PartialOrd<Font6x8> for Font6x8
impl PartialOrd<Font6x8> for Font6x8
sourcefn partial_cmp(&self, other: &Font6x8) -> Option<Ordering>
fn partial_cmp(&self, other: &Font6x8) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Font6x8
impl Eq for Font6x8
impl StructuralEq for Font6x8
impl StructuralPartialEq for Font6x8
Auto Trait Implementations
impl RefUnwindSafe for Font6x8
impl Send for Font6x8
impl Sync for Font6x8
impl Unpin for Font6x8
impl UnwindSafe for Font6x8
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more