pub struct ApplyContext<'a, 'f, 'c> {Show 21 fields
pub table_index: LayoutTableKind,
pub layout: LayoutData<'a>,
pub scale: Scale,
font_lifetimes: PhantomData<(&'f (), &'c ())>,
pub buffer: &'a mut Buffer,
lookup_mask: u32,
pub per_syllable: bool,
pub lookup_index: u16,
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 new_syllables: Option<u8>,
pub last_base: i32,
pub last_base_until: u32,
pub(crate) matcher: Matcher,
pub(crate) context_matcher: Matcher,
pub(crate) match_positions_len: usize,
pub(crate) match_positions: SmallVec<[u32; 8]>,
}Fields§
§table_index: LayoutTableKind§layout: LayoutData<'a>§scale: Scale§font_lifetimes: PhantomData<(&'f (), &'c ())>§buffer: &'a mut Buffer§lookup_mask: u32§per_syllable: bool§lookup_index: u16§lookup_props: u32§nesting_level_left: usize§auto_zwnj: bool§auto_zwj: bool§random: bool§random_state: u32§new_syllables: Option<u8>§last_base: i32§last_base_until: u32§matcher: Matcher§context_matcher: Matcher§match_positions_len: usize§match_positions: SmallVec<[u32; 8]>Implementations§
Source§impl<'a, 'f, 'c> ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> ApplyContext<'a, 'f, 'c>
pub fn new( table_index: LayoutTableKind, layout: LayoutData<'a>, scale: Scale, buffer: &'a mut Buffer, ) -> Self
pub fn scale_x(&self, value: f32) -> i32
pub fn scale_y(&self, value: f32) -> i32
pub fn random_number(&mut self) -> u32
pub fn set_lookup_mask(&mut self, mask: u32)
pub fn lookup_mask(&self) -> u32
pub fn update_matchers(&mut self)
pub fn recurse(&mut self, sub_lookup_index: u16) -> Option<()>
fn set_glyph_class( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, ligature: bool, component: bool, ) -> Option<()>
pub fn replace_glyph(&mut self, glyph_id: GlyphId)
pub fn replace_glyph_inplace(&mut self, glyph_id: GlyphId) -> Option<()>
pub fn replace_glyph_with_ligature( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )
pub fn output_glyph_for_component( &mut self, glyph_id: GlyphId, class_guess: GlyphPropsFlags, )
Auto Trait Implementations§
impl<'a, 'f, 'c> !RefUnwindSafe for ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> !UnwindSafe for ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Freeze for ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Send for ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Sync for ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> Unpin for ApplyContext<'a, 'f, 'c>
impl<'a, 'f, 'c> UnsafeUnpin for ApplyContext<'a, 'f, 'c>
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