pub struct SkippingIterator<'f, 'c, F> {
pub(crate) buffer: &'c mut Buffer,
ot: &'c OtData<'f>,
matcher: &'c Matcher,
match_positions: &'c mut SmallVec<[u32; 8]>,
buf_len: usize,
glyph_data: u32,
pub(crate) buf_idx: usize,
match_func: Option<F>,
lookup_props: u32,
syllable: u8,
}Fields§
§buffer: &'c mut Buffer§ot: &'c OtData<'f>§matcher: &'c Matcher§match_positions: &'c mut SmallVec<[u32; 8]>§buf_len: usize§glyph_data: u32§buf_idx: usize§match_func: Option<F>§lookup_props: u32§syllable: u8Implementations§
Source§impl<'f, 'c> SkippingIterator<'f, 'c, fn(&mut GlyphInfo, u32) -> bool>
impl<'f, 'c> SkippingIterator<'f, 'c, fn(&mut GlyphInfo, u32) -> bool>
pub fn new(ctx: &'c mut ApplyContext<'f, '_, '_>, context_match: bool) -> Self
Source§impl<'f, 'c, F> SkippingIterator<'f, 'c, F>
impl<'f, 'c, F> SkippingIterator<'f, 'c, F>
pub fn with_match_fn( ctx: &'c mut ApplyContext<'f, '_, '_>, context_match: bool, match_fn: Option<F>, ) -> Self
pub fn set_match_position(&mut self, idx: usize, position: usize)
pub fn set_glyph_data(&mut self, glyph_data: u32)
fn advance_glyph_data(&mut self)
pub fn set_lookup_props(&mut self, lookup_props: u32)
pub fn index(&self) -> usize
pub fn next(&mut self, unsafe_to: Option<&mut usize>) -> bool
pub fn prev(&mut self, unsafe_from: Option<&mut usize>) -> bool
pub fn reset(&mut self, start_index: usize) -> Option<()>
pub fn reset_back(&mut self, start_index: usize) -> Option<()>
pub fn reset_fast(&mut self, start_index: usize)
pub fn may_skip(&self, info: &GlyphInfo) -> MaySkip
pub fn match_at(&mut self, idx: usize) -> MatchResult
Auto Trait Implementations§
impl<'f, 'c, F> !RefUnwindSafe for SkippingIterator<'f, 'c, F>
impl<'f, 'c, F> !UnwindSafe for SkippingIterator<'f, 'c, F>
impl<'f, 'c, F> Freeze for SkippingIterator<'f, 'c, F>where
F: Freeze,
impl<'f, 'c, F> Send for SkippingIterator<'f, 'c, F>where
F: Send,
impl<'f, 'c, F> Sync for SkippingIterator<'f, 'c, F>where
F: Sync,
impl<'f, 'c, F> Unpin for SkippingIterator<'f, 'c, F>where
F: Unpin,
impl<'f, 'c, F> UnsafeUnpin for SkippingIterator<'f, 'c, F>where
F: UnsafeUnpin,
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