[][src]Struct sensehat_screen::fonts::FONT_COLLECTION

pub struct FONT_COLLECTION { /* fields omitted */ }

A static FontCollection that offers a higher-level API for working with pixel frames, clips, scrolls, etc.

FONT_COLLECTION.sanitize_str(&str) returns a sanitized FontString, and use that to render pixel frames..

FONT_COLLECTION.get(font: char) returns the low-level FontUnicode if the font is found in the collection.

Methods from Deref<Target = FontCollection>

pub fn get(&self, symbol: char) -> Option<&FontUnicode>[src]

Get an Option with the symbol's byte rendering.

pub fn contains_key(&self, symbol: char) -> bool[src]

Search if collection has a symbol by its unicode key.

pub fn sanitize_str(&self, s: &str) -> Result<FontString, ScreenError>[src]

Sanitize a &str and create a new FontString.

Trait Implementations

impl Deref for FONT_COLLECTION[src]

type Target = FontCollection

The resulting type after dereferencing.

impl LazyStatic for FONT_COLLECTION[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, 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.