Enum allsorts::layout::ReverseChainSingleSubst
source · [−]pub enum ReverseChainSingleSubst {
Format1 {
coverage: Rc<Coverage>,
backtrack_coverages: Vec<Rc<Coverage>>,
lookahead_coverages: Vec<Rc<Coverage>>,
substitute_glyphs: Vec<u16>,
},
}
Expand description
GSUB Lookup Type 8 Subtable Formats
Variants
Format1
Fields
backtrack_coverages: Vec<Rc<Coverage>>
Array of backtrack sequence coverages, ordered by glyph sequence
Format 1
Implementations
sourceimpl ReverseChainSingleSubst
impl ReverseChainSingleSubst
sourcepub fn apply_glyph(
&self,
glyph: u16,
f: impl Fn(&MatchContext<'_>) -> bool
) -> Result<Option<u16>, ParseError>
pub fn apply_glyph(
&self,
glyph: u16,
f: impl Fn(&MatchContext<'_>) -> bool
) -> Result<Option<u16>, ParseError>
Apply the substitution to the supplied glyph
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for ReverseChainSingleSubst
impl<'a> ReadBinaryDep<'a> for ReverseChainSingleSubst
sourcefn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
cache: Self::Args
) -> Result<Self, ParseError>
Parse a GSUB Lookup Type 8 Subtable from the given read context
type HostType = ReverseChainSingleSubst
type Args = Rc<LayoutCacheData<GSUB>>
Auto Trait Implementations
impl RefUnwindSafe for ReverseChainSingleSubst
impl !Send for ReverseChainSingleSubst
impl !Sync for ReverseChainSingleSubst
impl Unpin for ReverseChainSingleSubst
impl UnwindSafe for ReverseChainSingleSubst
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more