Skip to main content

skipping_iterator_t

Struct skipping_iterator_t 

Source
pub struct skipping_iterator_t<'f, 'c, F> {
    pub(crate) buffer: &'c mut hb_buffer_t,
    face: &'c hb_font_t<'f>,
    matcher: &'c matcher_t,
    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 hb_buffer_t§face: &'c hb_font_t<'f>§matcher: &'c matcher_t§match_positions: &'c mut SmallVec<[u32; 8]>§buf_len: usize§glyph_data: u32§buf_idx: usize§match_func: Option<F>§lookup_props: u32§syllable: u8

Implementations§

Source§

impl<'f, 'c> skipping_iterator_t<'f, 'c, fn(&mut GlyphInfo, u32) -> bool>

Source

pub fn new(ctx: &'c mut hb_ot_apply_context_t<'f>, context_match: bool) -> Self

Source§

impl<'f, 'c, F> skipping_iterator_t<'f, 'c, F>
where F: Fn(&mut GlyphInfo, u32) -> bool,

Source

pub fn with_match_fn( ctx: &'c mut hb_ot_apply_context_t<'f>, context_match: bool, match_fn: Option<F>, ) -> Self

Source

pub fn set_match_position(&mut self, idx: usize, position: usize)

Source

pub fn set_glyph_data(&mut self, glyph_data: u32)

Source

fn advance_glyph_data(&mut self)

Source

pub fn set_lookup_props(&mut self, lookup_props: u32)

Source

pub fn index(&self) -> usize

Source

pub fn next(&mut self, unsafe_to: Option<&mut usize>) -> bool

Source

pub fn prev(&mut self, unsafe_from: Option<&mut usize>) -> bool

Source

pub fn reset(&mut self, start_index: usize)

Source

pub fn reset_back(&mut self, start_index: usize)

Source

pub fn reset_fast(&mut self, start_index: usize)

Source

pub fn may_skip(&self, info: &GlyphInfo) -> may_skip_t

Source

pub fn match_at(&mut self, idx: usize, source: MatchSource) -> match_t

Auto Trait Implementations§

§

impl<'f, 'c, F> Freeze for skipping_iterator_t<'f, 'c, F>
where F: Freeze,

§

impl<'f, 'c, F> !RefUnwindSafe for skipping_iterator_t<'f, 'c, F>

§

impl<'f, 'c, F> Send for skipping_iterator_t<'f, 'c, F>
where F: Send,

§

impl<'f, 'c, F> Sync for skipping_iterator_t<'f, 'c, F>
where F: Sync,

§

impl<'f, 'c, F> Unpin for skipping_iterator_t<'f, 'c, F>
where F: Unpin,

§

impl<'f, 'c, F> UnsafeUnpin for skipping_iterator_t<'f, 'c, F>
where F: UnsafeUnpin,

§

impl<'f, 'c, F> !UnwindSafe for skipping_iterator_t<'f, 'c, F>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.