[][src]Struct sensehat_screen::fonts::FontString

pub struct FontString(_);

A FontString is a collection of FontUnicode which can be rendered to frames for the LED Matrix.

Implementations

impl FontString[src]

pub fn new() -> Self[src]

Create an empty FontString.

pub fn chars(&self) -> Vec<char>[src]

Render the font string as a collection of unicode value points, Vec<char>.

pub fn font_frames(&self, stroke: PixelColor, bg: PixelColor) -> Vec<FontFrame>[src]

Returns a Vec<FontFrame> for each inner font.

pub fn pixel_frames(
    &self,
    stroke: PixelColor,
    bg: PixelColor
) -> Vec<PixelFrame>
[src]

Returns a Vec<PixelFrame> for each inner font.

Trait Implementations

impl Clone for FontString[src]

impl Debug for FontString[src]

impl Default for FontString[src]

impl Display for FontString[src]

impl PartialEq<FontString> for FontString[src]

impl StructuralPartialEq for FontString[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.