pub struct CMap {
pub code_to_cid: HashMap<u32, u32>,
pub code_lengths: [u8; 256],
pub wmode: u8,
}Expand description
Parsed CMap: maps character codes to CIDs.
Fields§
§code_to_cid: HashMap<u32, u32>Code-to-CID mapping (character code → CID).
code_lengths: [u8; 256]Precomputed first-byte → code length table. 0 = not in any codespace range (treat as 2-byte default).
wmode: u8Writing mode: 0 = horizontal, 1 = vertical.
Implementations§
Auto Trait Implementations§
impl Freeze for CMap
impl RefUnwindSafe for CMap
impl Send for CMap
impl Sync for CMap
impl Unpin for CMap
impl UnsafeUnpin for CMap
impl UnwindSafe for CMap
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more