pub enum SubtableKind {
Format0,
Format2,
Format4,
Format6,
Format12,
Format13,
Format14,
Format15,
Unknown,
}Expand description
The subtable class, which decides how a subtable is read and written
(cmap_format_0, cmap_format_2, …, cmap_format_unknown).
Variants§
Format0
Byte encoding table.
Format2
High-byte mapping through table.
Format4
Segment mapping to delta values.
Format6
Trimmed table mapping.
Format12
Segmented coverage.
Format13
Many-to-one range mappings.
Format14
Unicode Variation Sequences.
Format15
Unicode Variation Sequences with 24-bit glyph IDs.
Unknown
Any other format (including 8 and 10), kept as raw data.
Implementations§
Source§impl SubtableKind
impl SubtableKind
Sourcepub fn from_format(format: u16) -> Self
pub fn from_format(format: u16) -> Self
The class for a format (getSubtableClass).
Trait Implementations§
Source§impl Clone for SubtableKind
impl Clone for SubtableKind
impl Copy for SubtableKind
Source§impl Debug for SubtableKind
impl Debug for SubtableKind
impl Eq for SubtableKind
Source§impl Hash for SubtableKind
impl Hash for SubtableKind
Source§impl PartialEq for SubtableKind
impl PartialEq for SubtableKind
impl StructuralPartialEq for SubtableKind
Auto Trait Implementations§
impl Forget for SubtableKind
impl Freeze for SubtableKind
impl Move for SubtableKind
impl RefUnwindSafe for SubtableKind
impl Send for SubtableKind
impl Sync for SubtableKind
impl Unpin for SubtableKind
impl UnsafeUnpin for SubtableKind
impl UnwindSafe for SubtableKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.