Struct embedded_graphics::fonts::Font12x16
source · [−]pub struct Font12x16;
Expand description
Trait Implementations
sourceimpl Font for Font12x16
impl Font for Font12x16
Config for 12x16 font
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 Font12x16
impl Ord for Font12x16
sourceimpl PartialOrd<Font12x16> for Font12x16
impl PartialOrd<Font12x16> for Font12x16
sourcefn partial_cmp(&self, other: &Font12x16) -> Option<Ordering>
fn partial_cmp(&self, other: &Font12x16) -> 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 Font12x16
impl Eq for Font12x16
impl StructuralEq for Font12x16
impl StructuralPartialEq for Font12x16
Auto Trait Implementations
impl RefUnwindSafe for Font12x16
impl Send for Font12x16
impl Sync for Font12x16
impl Unpin for Font12x16
impl UnwindSafe for Font12x16
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