pub enum CodingScheme {
OneByte,
TwoBytes,
MixedTwoBytes,
MixedFourBytes,
}Expand description
How a byte string splits into character codes (ISO 32000-1 §9.7.6.2).
The default is TwoBytes, and that default is
load-bearing: an unrecognised predefined name and a CMap stream with no
usable codespacerange both decode as fixed 2-byte codes.
use pdfrum_cmap::CodingScheme;
assert_eq!(CodingScheme::default(), CodingScheme::TwoBytes);Variants§
OneByte
Every byte is its own code.
TwoBytes
Every code is exactly two bytes, big-endian.
MixedTwoBytes
A set of leading bytes starts a two-byte code; every other byte is a one-byte code.
MixedFourBytes
Codespace ranges decide the width of each code, one to four bytes.
Trait Implementations§
Source§impl Clone for CodingScheme
impl Clone for CodingScheme
Source§fn clone(&self) -> CodingScheme
fn clone(&self) -> CodingScheme
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 moreimpl Copy for CodingScheme
Source§impl Debug for CodingScheme
impl Debug for CodingScheme
Source§impl Default for CodingScheme
impl Default for CodingScheme
Source§fn default() -> CodingScheme
fn default() -> CodingScheme
Returns the “default value” for a type. Read more
impl Eq for CodingScheme
Source§impl Hash for CodingScheme
impl Hash for CodingScheme
Source§impl Ord for CodingScheme
impl Ord for CodingScheme
Source§fn cmp(&self, other: &CodingScheme) -> Ordering
fn cmp(&self, other: &CodingScheme) -> Ordering
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 PartialEq for CodingScheme
impl PartialEq for CodingScheme
Source§impl PartialOrd for CodingScheme
impl PartialOrd for CodingScheme
impl StructuralPartialEq for CodingScheme
Auto Trait Implementations§
impl Freeze for CodingScheme
impl RefUnwindSafe for CodingScheme
impl Send for CodingScheme
impl Sync for CodingScheme
impl Unpin for CodingScheme
impl UnsafeUnpin for CodingScheme
impl UnwindSafe for CodingScheme
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