Skip to main content

MatchFn

Type Alias MatchFn 

Source
type MatchFn<'a> = &'a dyn Fn(&mut GlyphInfo, u32) -> bool;
Expand description

Matches a glyph against a rule value: a glyph ID or a class. The rule walks are generic over it so that matching inlines; would_apply, which is cold, takes it by reference.