[−][src]Struct font8x8::unicode::FontUnicode
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(&self) -> 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]
fn eq(&self, other: &FontUnicode) -> bool
[src]
fn ne(&self, other: &FontUnicode) -> bool
[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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Rfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut R
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,