Enum allsorts_no_std::layout::SingleSubst[][src]

pub enum SingleSubst {
    Format1 {
        coverage: Rc<Coverage>,
        delta_glyph_index: i16,
    },
    Format2 {
        coverage: Rc<Coverage>,
        substitute_glyph_array: Vec<u16>,
    },
}

Variants

Format1

Fields of Format1

coverage: Rc<Coverage>delta_glyph_index: i16
Format2

Fields of Format2

coverage: Rc<Coverage>substitute_glyph_array: Vec<u16>

Implementations

impl SingleSubst[src]

pub fn apply_glyph(&self, glyph: u16) -> Result<Option<u16>, ParseError>[src]

Trait Implementations

impl<'a> ReadBinaryDep<'a> for SingleSubst[src]

type HostType = Self

type Args = LayoutCache<GSUB>

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.