Struct hb_ot_apply_context_t

Source
pub struct hb_ot_apply_context_t<'a, 'b> {
Show 15 fields pub table_index: TableIndex, pub face: &'a hb_font_t<'b>, pub buffer: &'a mut hb_buffer_t, lookup_mask: u32, pub per_syllable: bool, pub lookup_index: LookupIndex, pub lookup_props: u32, pub nesting_level_left: usize, pub auto_zwnj: bool, pub auto_zwj: bool, pub random: bool, pub random_state: u32, pub last_base: i32, pub last_base_until: u32, pub digest: hb_set_digest_combiner_t<hb_set_digest_bits_pattern_t<4>, hb_set_digest_combiner_t<hb_set_digest_bits_pattern_t<0>, hb_set_digest_bits_pattern_t<9>>>,
}

Fields§

§table_index: TableIndex§face: &'a hb_font_t<'b>§buffer: &'a mut hb_buffer_t§lookup_mask: u32§per_syllable: bool§lookup_index: LookupIndex§lookup_props: u32§nesting_level_left: usize§auto_zwnj: bool§auto_zwj: bool§random: bool§random_state: u32§last_base: i32§last_base_until: u32§digest: hb_set_digest_combiner_t<hb_set_digest_bits_pattern_t<4>, hb_set_digest_combiner_t<hb_set_digest_bits_pattern_t<0>, hb_set_digest_bits_pattern_t<9>>>

Implementations§

Source§

impl<'a, 'b> hb_ot_apply_context_t<'a, 'b>

Source

pub fn new( table_index: TableIndex, face: &'a hb_font_t<'b>, buffer: &'a mut hb_buffer_t, ) -> Self

Source

pub fn random_number(&mut self) -> u32

Source

pub fn set_lookup_mask(&mut self, mask: u32)

Source

pub fn lookup_mask(&self) -> u32

Source

pub fn recurse(&mut self, sub_lookup_index: LookupIndex) -> Option<()>

Source

pub fn check_glyph_property( &self, info: &hb_glyph_info_t, match_props: u32, ) -> bool

Source

fn set_glyph_class( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, ligature: bool, component: bool, )

Source

pub fn replace_glyph(&mut self, glyph_id: GlyphId)

Source

pub fn replace_glyph_inplace(&mut self, glyph_id: GlyphId)

Source

pub fn replace_glyph_with_ligature( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )

Source

pub fn output_glyph_for_component( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )

Auto Trait Implementations§

§

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

§

impl<'a, 'b> RefUnwindSafe for hb_ot_apply_context_t<'a, 'b>

§

impl<'a, 'b> Send for hb_ot_apply_context_t<'a, 'b>

§

impl<'a, 'b> Sync for hb_ot_apply_context_t<'a, 'b>

§

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

§

impl<'a, 'b> !UnwindSafe for hb_ot_apply_context_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.