pub struct Matcher {
lookup_props: u32,
mask: u32,
ignore_zwnj: bool,
ignore_zwj: bool,
ignore_hidden: bool,
per_syllable: bool,
}Fields§
§lookup_props: u32§mask: u32§ignore_zwnj: bool§ignore_zwj: bool§per_syllable: boolImplementations§
Source§impl Matcher
impl Matcher
fn new(ctx: &ApplyContext<'_, '_, '_>, context_match: bool) -> Self
fn may_match( &self, info: &mut GlyphInfo, glyph_data: u32, match_func: Option<&impl Fn(&mut GlyphInfo, u32) -> bool>, syllable: u8, ) -> MayMatch
fn may_skip( &self, info: &GlyphInfo, ot: &OtData<'_>, lookup_props: u32, ) -> MaySkip
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Matcher
impl RefUnwindSafe for Matcher
impl Send for Matcher
impl Sync for Matcher
impl Unpin for Matcher
impl UnsafeUnpin for Matcher
impl UnwindSafe for Matcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more