#[repr(u8)]pub enum CidCoding {
Unknown = 0,
Gb = 1,
Big5 = 2,
Jis = 3,
Korea = 4,
Ucs2 = 5,
Cid = 6,
Utf16 = 7,
}Expand description
How a predefined CMap’s character codes relate to a legacy encoding. Purely
descriptive at this layer — nothing in this crate branches on it — but
pdfrum-font uses it to pick a code page when a CID font falls back to a
system face, so it is part of the CMap’s observable identity.
Variants§
Unknown = 0
An unrecognised /Encoding name, or any embedded CMap.
Gb = 1
GB 2312 / GBK family.
Big5 = 2
Big5 family.
Jis = 3
Shift-JIS / EUC-JP family.
Korea = 4
KS X 1001 / UHC family.
Ucs2 = 5
UCS-2 code points.
Cid = 6
Identity-H / Identity-V: the code is the CID.
Utf16 = 7
UTF-16 code units.
Trait Implementations§
impl Copy for CidCoding
impl Eq for CidCoding
Source§impl Ord for CidCoding
impl Ord for CidCoding
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for CidCoding
impl PartialOrd for CidCoding
impl StructuralPartialEq for CidCoding
Auto Trait Implementations§
impl Freeze for CidCoding
impl RefUnwindSafe for CidCoding
impl Send for CidCoding
impl Sync for CidCoding
impl Unpin for CidCoding
impl UnsafeUnpin for CidCoding
impl UnwindSafe for CidCoding
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