Struct ttf_parser::kern::state_machine::Machine[][src]

pub struct Machine<'a> { /* fields omitted */ }

A state machine.

Implementations

impl<'a> Machine<'a>[src]

pub fn class(&self, glyph_id: GlyphId) -> Option<u8>[src]

Returns a glyph class.

pub fn entry(&self, state: State, class: u8) -> Option<Entry>[src]

Returns a class entry.

pub fn kerning(&self, offset: ValueOffset) -> Option<i16>[src]

Returns kerning at offset.

pub fn new_state(&self, state: State) -> State[src]

Produces a new state.

Trait Implementations

impl Debug for Machine<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Machine<'a>

impl<'a> Send for Machine<'a>

impl<'a> Sync for Machine<'a>

impl<'a> Unpin for Machine<'a>

impl<'a> UnwindSafe for Machine<'a>

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.