pub(crate) struct ChainContext1<'a> {
rule_sets: Offsets<'a>,
layout: RuleLayout,
wide_glyphs: bool,
}Expand description
Chained context by glyph sequences, or context by glyph sequences.
Fields§
§rule_sets: Offsets<'a>§layout: RuleLayout§wide_glyphs: boolWhether rule glyph IDs are 24 bits rather than 16.
Implementations§
Source§impl<'a> ChainContext1<'a>
impl<'a> ChainContext1<'a>
pub fn new(table: &ChainedSequenceContextFormat1<'a>) -> Option<Self>
pub fn new_wide(table: &ChainedSequenceContextFormat4<'a>) -> Option<Self>
pub fn from_plain(table: &SequenceContextFormat1<'a>) -> Option<Self>
pub fn from_plain_wide(table: &SequenceContextFormat4<'a>) -> Option<Self>
fn rule_set(&self, index: usize) -> Option<Rules<'a>>
pub fn apply( &self, ctx: &mut ApplyContext<'_, '_, '_>, index: u32, ) -> Option<()>
pub fn would_apply( &self, ctx: &WouldApplyContext<'_>, coverage: &Coverage<'_>, ) -> bool
Trait Implementations§
Source§impl<'a> IntoKind<'a> for ChainContext1<'a>
impl<'a> IntoKind<'a> for ChainContext1<'a>
Source§impl<'a> SubtableDigests<'a> for ChainContext1<'a>
impl<'a> SubtableDigests<'a> for ChainContext1<'a>
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§const CACHES_COVERAGE: bool = false
const CACHES_COVERAGE: bool = false
Whether looking up the first glyph’s coverage gains from a cache.
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 ChainContext1<'a>
impl<'a> RefUnwindSafe for ChainContext1<'a>
impl<'a> Send for ChainContext1<'a>
impl<'a> Sync for ChainContext1<'a>
impl<'a> Unpin for ChainContext1<'a>
impl<'a> UnsafeUnpin for ChainContext1<'a>
impl<'a> UnwindSafe for ChainContext1<'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