Struct font8x8::unicode::FontUnicode[][src]

pub struct FontUnicode(pub char, pub [u8; 8]);

A single 8x8 font which supports UTF-16 encoding/decoding.

Implementations

impl FontUnicode[src]

pub fn char(&self) -> char[src]

Return the char value

pub fn byte_array(&self) -> [u8; 8][src]

Return the [u8; 8]-representation for this font.

pub fn is_whitespace(&self) -> bool[src]

Returns a bool indicating whether this font renders as a whitespace (all 0).

pub fn into_inner(self) -> (char, [u8; 8])[src]

Consumes the current FontUnicode and returns the inner (char, [u8; 8]) tuple.

Trait Implementations

impl Clone for FontUnicode[src]

impl Copy for FontUnicode[src]

impl Debug for FontUnicode[src]

impl Display for FontUnicode[src]

impl From<FontUnicode> for char[src]

impl From<FontUnicode> for [u8; 8][src]

impl From<FontUnicode> for (char, [u8; 8])[src]

impl PartialEq<FontUnicode> for FontUnicode[src]

impl StructuralPartialEq for FontUnicode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.