pub(crate) struct MultipleSubst1<'a> {
sequences: Offsets<'a>,
glyph_width: u8,
}Expand description
Multiple substitution: one glyph into a sequence.
Fields§
§sequences: Offsets<'a>§glyph_width: u8Implementations§
Source§impl<'a> MultipleSubst1<'a>
impl<'a> MultipleSubst1<'a>
pub fn new(table: &MultipleSubstFormat1<'a>) -> Option<Self>
pub fn new_wide(table: &MultipleSubstFormat2<'a>) -> Option<Self>
pub fn apply( &self, ctx: &mut ApplyContext<'_, '_, '_>, index: u32, ) -> Option<()>
Trait Implementations§
Source§impl<'a> IntoKind<'a> for MultipleSubst1<'a>
impl<'a> IntoKind<'a> for MultipleSubst1<'a>
Source§impl<'a> SubtableDigests<'a> for MultipleSubst1<'a>
impl<'a> SubtableDigests<'a> for MultipleSubst1<'a>
Source§const CACHES_COVERAGE: bool = false
const CACHES_COVERAGE: bool = false
Whether looking up the first glyph’s coverage gains from a cache.
Source§fn digest_second(&self, _budget: &Budget) -> Result<SetDigest, Exhausted>
fn digest_second(&self, _budget: &Budget) -> Result<SetDigest, Exhausted>
The glyphs that may follow the first one in a match.
Source§fn cache_cost(&self) -> u32
fn cache_cost(&self) -> u32
How much the subtable gains from the glyph-info class cache.
Auto Trait Implementations§
impl<'a> Freeze for MultipleSubst1<'a>
impl<'a> RefUnwindSafe for MultipleSubst1<'a>
impl<'a> Send for MultipleSubst1<'a>
impl<'a> Sync for MultipleSubst1<'a>
impl<'a> Unpin for MultipleSubst1<'a>
impl<'a> UnsafeUnpin for MultipleSubst1<'a>
impl<'a> UnwindSafe for MultipleSubst1<'a>
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