pub enum CidToGidMap {
Identity,
Explicit(Vec<u16>),
}Expand description
CID-to-GID (glyph ID) mapping strategy.
Variants§
Identity
Identity mapping: CID equals GID directly.
Explicit(Vec<u16>)
Explicit mapping: byte array where GID for CID n is at bytes 2n and 2n+1
(big-endian u16).
Implementations§
Source§impl CidToGidMap
impl CidToGidMap
Trait Implementations§
Source§impl Clone for CidToGidMap
impl Clone for CidToGidMap
Source§fn clone(&self) -> CidToGidMap
fn clone(&self) -> CidToGidMap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CidToGidMap
impl Debug for CidToGidMap
Source§impl PartialEq for CidToGidMap
impl PartialEq for CidToGidMap
impl StructuralPartialEq for CidToGidMap
Auto Trait Implementations§
impl Freeze for CidToGidMap
impl RefUnwindSafe for CidToGidMap
impl Send for CidToGidMap
impl Sync for CidToGidMap
impl Unpin for CidToGidMap
impl UnsafeUnpin for CidToGidMap
impl UnwindSafe for CidToGidMap
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