pub struct CharCode(pub u32);Expand description
A character code: one unit of a PDF string as split by a CMap’s decoder
(ISO 32000-1 §9.7.5). Between 1 and 4 bytes wide depending on the coding
scheme, so the value alone does not say how many bytes it came from; ask
CMap::char_size.
use pdfrum_cmap::CharCode;
let code = CharCode(0x8140);
assert_eq!(u32::from(code), 0x8140);Tuple Fields§
§0: u32Trait Implementations§
impl Copy for CharCode
impl Eq for CharCode
Source§impl Ord for CharCode
impl Ord for CharCode
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 CharCode
impl PartialOrd for CharCode
impl StructuralPartialEq for CharCode
Auto Trait Implementations§
impl Freeze for CharCode
impl RefUnwindSafe for CharCode
impl Send for CharCode
impl Sync for CharCode
impl Unpin for CharCode
impl UnsafeUnpin for CharCode
impl UnwindSafe for CharCode
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