Struct font8x8::unicode::FontUnicode [−][src]
A single 8x8 font which supports UTF-16
encoding/decoding.
Methods
impl FontUnicode
[src]
impl FontUnicode
pub fn char(&self) -> char
[src]
pub fn char(&self) -> char
Return the char value
pub fn byte_array(&self) -> [u8; 8]
[src]
pub fn byte_array(&self) -> [u8; 8]
Return the [u8; 8]
-representation for this font.
pub fn to_string(&self) -> String
[src]
pub fn to_string(&self) -> String
Return a result with the corresponding String
for the font.
pub fn is_whitespace(&self) -> bool
[src]
pub fn is_whitespace(&self) -> bool
Returns a bool
indicating whether this font renders as a whitespace (all 0
).
pub fn into_inner(self) -> (char, [u8; 8])
[src]
pub fn into_inner(self) -> (char, [u8; 8])
Consumes the current FontUnicode
and returns the inner (char, [u8; 8])
tuple.
Trait Implementations
impl Clone for FontUnicode
[src]
impl Clone for FontUnicode
fn clone(&self) -> FontUnicode
[src]
fn clone(&self) -> FontUnicode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for FontUnicode
[src]
impl Copy for FontUnicode
impl Debug for FontUnicode
[src]
impl Debug for FontUnicode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for FontUnicode
[src]
impl PartialEq for FontUnicode
fn eq(&self, other: &FontUnicode) -> bool
[src]
fn eq(&self, other: &FontUnicode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &FontUnicode) -> bool
[src]
fn ne(&self, other: &FontUnicode) -> bool
This method tests for !=
.
impl Into<char> for FontUnicode
[src]
impl Into<char> for FontUnicode
impl Into<[u8; 8]> for FontUnicode
[src]
impl Into<[u8; 8]> for FontUnicode
impl Into<(char, [u8; 8])> for FontUnicode
[src]
impl Into<(char, [u8; 8])> for FontUnicode
Auto Trait Implementations
impl Send for FontUnicode
impl Send for FontUnicode
impl Sync for FontUnicode
impl Sync for FontUnicode