Struct skipping_iterator_t

Source
pub struct skipping_iterator_t<'a, 'b> {
    ctx: &'a hb_ot_apply_context_t<'a, 'b>,
    lookup_props: u32,
    ignore_zwnj: bool,
    ignore_zwj: bool,
    ignore_hidden: bool,
    mask: u32,
    syllable: u8,
    matching: Option<&'a (dyn Fn(GlyphId, u16) -> bool + 'a)>,
    buf_len: usize,
    glyph_data: u16,
    pub(crate) buf_idx: usize,
}

Fields§

§ctx: &'a hb_ot_apply_context_t<'a, 'b>§lookup_props: u32§ignore_zwnj: bool§ignore_zwj: bool§ignore_hidden: bool§mask: u32§syllable: u8§matching: Option<&'a (dyn Fn(GlyphId, u16) -> bool + 'a)>§buf_len: usize§glyph_data: u16§buf_idx: usize

Implementations§

Source§

impl<'a, 'b> skipping_iterator_t<'a, 'b>

Source

pub fn new( ctx: &'a hb_ot_apply_context_t<'a, 'b>, start_buf_index: usize, context_match: bool, ) -> Self

Source

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

Source

fn advance_glyph_data(&mut self)

Source

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

Source

pub fn enable_matching(&mut self, func: &'a (dyn Fn(GlyphId, u16) -> bool + 'a))

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 match_(&self, info: &hb_glyph_info_t) -> match_t

Source

fn may_match(&self, info: &hb_glyph_info_t) -> may_match_t

Source

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

Auto Trait Implementations§

§

impl<'a, 'b> Freeze for skipping_iterator_t<'a, 'b>

§

impl<'a, 'b> !RefUnwindSafe for skipping_iterator_t<'a, 'b>

§

impl<'a, 'b> !Send for skipping_iterator_t<'a, 'b>

§

impl<'a, 'b> !Sync for skipping_iterator_t<'a, 'b>

§

impl<'a, 'b> Unpin for skipping_iterator_t<'a, 'b>

§

impl<'a, 'b> !UnwindSafe for skipping_iterator_t<'a, 'b>

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.