pub enum SubtableKind<'a> {
Rearrangement(ExtendedStateTable<'a>),
Contextual(ContextualSubtable<'a>),
Ligature(LigatureSubtable<'a>),
NonContextual(LookupU16<'a>),
Insertion(InsertionSubtable<'a>),
}Expand description
The various morx subtable formats.
Variants§
Rearrangement(ExtendedStateTable<'a>)
Contextual(ContextualSubtable<'a>)
Ligature(LigatureSubtable<'a>)
NonContextual(LookupU16<'a>)
Insertion(InsertionSubtable<'a>)
Implementations§
Source§impl<'a> SubtableKind<'a>
impl<'a> SubtableKind<'a>
Sourcepub fn parts(
data: FontData<'a>,
coverage: u32,
) -> Result<SubtableParts, ReadError>
pub fn parts( data: FontData<'a>, coverage: u32, ) -> Result<SubtableParts, ReadError>
Captures the offsets needed to rebuild this subtable kind from the same data with SubtableKind::from_parts.
Sourcepub fn from_parts(
data: FontData<'a>,
parts: &SubtableParts,
) -> Result<Self, ReadError>
pub fn from_parts( data: FontData<'a>, parts: &SubtableParts, ) -> Result<Self, ReadError>
Rebuilds the subtable kind from data and offsets previously
captured with SubtableKind::parts on the same data.
Trait Implementations§
Source§impl<'a> Clone for SubtableKind<'a>
impl<'a> Clone for SubtableKind<'a>
Source§fn clone(&self) -> SubtableKind<'a>
fn clone(&self) -> SubtableKind<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> FontRead<'a> for SubtableKind<'a>
impl<'a> FontRead<'a> for SubtableKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubtableKind<'a>
impl<'a> RefUnwindSafe for SubtableKind<'a>
impl<'a> Send for SubtableKind<'a>
impl<'a> Sync for SubtableKind<'a>
impl<'a> Unpin for SubtableKind<'a>
impl<'a> UnsafeUnpin for SubtableKind<'a>
impl<'a> UnwindSafe for SubtableKind<'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