pub struct EncodingRecord {
pub platform_id: u16,
pub encoding_id: u16,
pub offset: u32,
}Expand description
A cmap encoding record: platform/encoding id plus subtable offset.
Fields§
§platform_id: u16Platform id (0 Unicode, 1 Macintosh, 3 Microsoft, …).
encoding_id: u16Encoding id (platform-specific; e.g. 1 = BMP, 10 = UCS-4).
offset: u32Offset of the subtable from the cmap table start.
Implementations§
Source§impl EncodingRecord
impl EncodingRecord
Sourcepub const fn is_unicode(self) -> bool
pub const fn is_unicode(self) -> bool
True for encodings that carry a Unicode character mapping.
Trait Implementations§
Source§impl Clone for EncodingRecord
impl Clone for EncodingRecord
impl Copy for EncodingRecord
Source§impl Debug for EncodingRecord
impl Debug for EncodingRecord
impl Eq for EncodingRecord
Source§impl PartialEq for EncodingRecord
impl PartialEq for EncodingRecord
impl StructuralPartialEq for EncodingRecord
Auto Trait Implementations§
impl Freeze for EncodingRecord
impl RefUnwindSafe for EncodingRecord
impl Send for EncodingRecord
impl Sync for EncodingRecord
impl Unpin for EncodingRecord
impl UnsafeUnpin for EncodingRecord
impl UnwindSafe for EncodingRecord
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