pub(crate) struct SingleSubst1 {
delta: i32,
mask: u32,
}Expand description
Single substitution by a fixed delta, wrapping within the glyph ID width.
Fields§
§delta: i32§mask: u32Implementations§
Source§impl SingleSubst1
impl SingleSubst1
pub fn new(table: &SingleSubstFormat1<'_>) -> Option<Self>
pub fn new_wide(table: &SingleSubstFormat3<'_>) -> Option<Self>
pub fn apply( &self, ctx: &mut ApplyContext<'_, '_, '_>, _index: u32, ) -> Option<()>
Trait Implementations§
Source§impl<'a> IntoKind<'a> for SingleSubst1
impl<'a> IntoKind<'a> for SingleSubst1
Source§impl SubtableDigests<'_> for SingleSubst1
impl SubtableDigests<'_> for SingleSubst1
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 Freeze for SingleSubst1
impl RefUnwindSafe for SingleSubst1
impl Send for SingleSubst1
impl Sync for SingleSubst1
impl Unpin for SingleSubst1
impl UnsafeUnpin for SingleSubst1
impl UnwindSafe for SingleSubst1
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