Enum allsorts_no_std::layout::ReverseChainSingleSubst[][src]

pub enum ReverseChainSingleSubst {
    Format1 {
        coverage: Rc<Coverage>,
        backtrack_coverages: Vec<Rc<Coverage>>,
        lookahead_coverages: Vec<Rc<Coverage>>,
        substitute_glyphs: Vec<u16>,
    },
}

GSUB Lookup Type 8 Subtable Formats

Variants

Format1

Format 1

Fields of Format1

coverage: Rc<Coverage>

Coverage table for the single input glyph

backtrack_coverages: Vec<Rc<Coverage>>

Array of backtrack sequence coverages, ordered by glyph sequence

lookahead_coverages: Vec<Rc<Coverage>>

Array of lookahead sequence coverages, ordered by glyph sequence

substitute_glyphs: Vec<u16>

Array of substitute glyphs, ordered by coverage index

Implementations

impl ReverseChainSingleSubst[src]

pub fn apply_glyph(
    &self,
    glyph: u16,
    f: impl Fn(&MatchContext<'_>) -> bool
) -> Result<Option<u16>, ParseError>
[src]

Apply the substitution to the supplied glyph

Trait Implementations

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

type HostType = Self

type Args = LayoutCache<GSUB>

fn read_dep(
    ctxt: &mut ReadCtxt<'a>,
    cache: Self::Args
) -> Result<Self, ParseError>
[src]

Parse a GSUB Lookup Type 8 Subtable from the given read context

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.