[][src]Struct fit_text::BasicGlyphs

pub struct BasicGlyphs<'f> { /* fields omitted */ }

A basic implementor for CharacterWidthCache

Methods

impl<'f> BasicGlyphs<'f>[src]

pub fn from_bytes(bytes: &'f [u8]) -> Result<BasicGlyphs<'f>, Error>[src]

Loads a Glyphs from an array of font data.

pub fn from_font(font: Font<'f>) -> BasicGlyphs<'f>[src]

Loads a Glyphs from a Font.

Trait Implementations

impl<'f> CharacterWidthCache for BasicGlyphs<'f>[src]

impl<'f> Clone for BasicGlyphs<'f>[src]

Auto Trait Implementations

impl<'f> Unpin for BasicGlyphs<'f>

impl<'f> Sync for BasicGlyphs<'f>

impl<'f> Send for BasicGlyphs<'f>

impl<'f> UnwindSafe for BasicGlyphs<'f>

impl<'f> RefUnwindSafe for BasicGlyphs<'f>

Blanket Implementations

impl<C> CharacterWidthCache for C where
    C: CharacterCache, 
[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, 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.

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

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

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