Struct sensehat_screen::FontString
[−]
[src]
pub struct FontString(_);
A string of font symbols valid for rendering. FontString
instances can only be created by a FontCollection
instance.
Methods
impl FontString
[src]
pub fn to_slice(&self) -> &[u16]
[src]
Render the font string as unicode slice, &[u16]
.
pub fn to_string(&self) -> String
[src]
Render the font string as a String
.
Trait Implementations
impl Clone for FontString
[src]
fn clone(&self) -> FontString
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for FontString
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for FontString
[src]
fn default() -> FontString
[src]
Returns the "default value" for a type. Read more
impl PartialEq for FontString
[src]
fn eq(&self, __arg_0: &FontString) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FontString) -> bool
[src]
This method tests for !=
.