Struct sensehat_screen::fonts::FontString [−][src]
pub struct FontString(_);
A FontString is a collection of FontUnicode which can be rendered to frames for the LED
Matrix.
Methods
impl FontString[src]
impl FontStringpub fn new() -> Self[src]
pub fn new() -> SelfCreate an empty FontString.
pub fn chars(&self) -> Vec<char>[src]
pub fn chars(&self) -> Vec<char>Render the font string as a collection of unicode value points, Vec<char>.
pub fn to_string(&self) -> String[src]
pub fn to_string(&self) -> StringRender the font string as a String.
pub fn font_frames(&self, stroke: PixelColor, bg: PixelColor) -> Vec<FontFrame>[src]
pub fn font_frames(&self, stroke: PixelColor, bg: PixelColor) -> Vec<FontFrame>Returns a Vec<FontFrame> for each inner font.
pub fn pixel_frames(
&self,
stroke: PixelColor,
bg: PixelColor
) -> Vec<PixelFrame>[src]
pub fn pixel_frames(
&self,
stroke: PixelColor,
bg: PixelColor
) -> Vec<PixelFrame>Returns a Vec<PixelFrame> for each inner font.
Trait Implementations
impl Clone for FontString[src]
impl Clone for FontStringfn clone(&self) -> FontString[src]
fn clone(&self) -> FontStringReturns 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 Debug for FontString[src]
impl Debug for FontStringfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for FontString[src]
impl Default for FontStringfn default() -> FontString[src]
fn default() -> FontStringReturns the "default value" for a type. Read more
impl PartialEq for FontString[src]
impl PartialEq for FontStringfn eq(&self, other: &FontString) -> bool[src]
fn eq(&self, other: &FontString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FontString) -> bool[src]
fn ne(&self, other: &FontString) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for FontString
impl Send for FontStringimpl Sync for FontString
impl Sync for FontString