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

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

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

Methods

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 to_string(&self) -> String[src]

Return a result with the corresponding String for the 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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<FontUnicode> for FontUnicode[src]

impl Copy for FontUnicode[src]

impl Into<char> for FontUnicode[src]

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

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

impl Debug for FontUnicode[src]

Auto Trait Implementations

impl Send for FontUnicode

impl Sync for FontUnicode

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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