pub enum CmapSubtable<'a> {
Format0(Format0<'a>),
Format4(Format4<'a>),
Format6(Format6<'a>),
Format12(Format12<'a>),
}Expand description
A decoded cmap subtable.
Variants§
Format0(Format0<'a>)
Byte encoding table (format 0).
Format4(Format4<'a>)
Segment mapping to delta values (format 4).
Format6(Format6<'a>)
Trimmed table mapping (format 6).
Format12(Format12<'a>)
Segmented coverage (format 12).
Implementations§
Source§impl<'a> CmapSubtable<'a>
impl<'a> CmapSubtable<'a>
Sourcepub fn parse(data: &'a [u8]) -> Result<Self, ParseError>
pub fn parse(data: &'a [u8]) -> Result<Self, ParseError>
Decode a subtable by its format field.
§Errors
ParseError::InvalidCmapFormat for unsupported/invalid formats;
format-specific parse errors otherwise.
Trait Implementations§
Source§impl<'a> Clone for CmapSubtable<'a>
impl<'a> Clone for CmapSubtable<'a>
impl<'a> Copy for CmapSubtable<'a>
Source§impl<'a> Debug for CmapSubtable<'a>
impl<'a> Debug for CmapSubtable<'a>
impl<'a> Eq for CmapSubtable<'a>
Source§impl<'a> PartialEq for CmapSubtable<'a>
impl<'a> PartialEq for CmapSubtable<'a>
impl<'a> StructuralPartialEq for CmapSubtable<'a>
Auto Trait Implementations§
impl<'a> Freeze for CmapSubtable<'a>
impl<'a> RefUnwindSafe for CmapSubtable<'a>
impl<'a> Send for CmapSubtable<'a>
impl<'a> Sync for CmapSubtable<'a>
impl<'a> Unpin for CmapSubtable<'a>
impl<'a> UnsafeUnpin for CmapSubtable<'a>
impl<'a> UnwindSafe for CmapSubtable<'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