[−][src]Struct sensehat_screen::fonts::FONT_COLLECTION
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.
fn deref(&self) -> &FontCollection
[src]
impl LazyStatic for FONT_COLLECTION
[src]
fn initialize(lazy: &Self)
[src]
Auto Trait Implementations
impl RefUnwindSafe for FONT_COLLECTION
impl Send for FONT_COLLECTION
impl Sync for FONT_COLLECTION
impl Unpin for FONT_COLLECTION
impl UnwindSafe for FONT_COLLECTION
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,