Struct read_fonts::tables::cmap::EncodingRecord
source · #[repr(C)]#[repr(packed)]pub struct EncodingRecord {
pub platform_id: BigEndian<PlatformId>,
pub encoding_id: BigEndian<u16>,
pub subtable_offset: BigEndian<Offset32>,
}Expand description
Fields§
§platform_id: BigEndian<PlatformId>Platform ID.
encoding_id: BigEndian<u16>Platform-specific encoding ID.
subtable_offset: BigEndian<Offset32>Byte offset from beginning of table to the subtable for this encoding.
Implementations§
source§impl EncodingRecord
impl EncodingRecord
sourcepub fn platform_id(&self) -> PlatformId
pub fn platform_id(&self) -> PlatformId
Platform ID.
sourcepub fn encoding_id(&self) -> u16
pub fn encoding_id(&self) -> u16
Platform-specific encoding ID.
sourcepub fn subtable_offset(&self) -> Offset32
pub fn subtable_offset(&self) -> Offset32
Byte offset from beginning of table to the subtable for this encoding.
sourcepub fn subtable<'a>(
&self,
data: FontData<'a>
) -> Result<CmapSubtable<'a>, ReadError>
pub fn subtable<'a>( &self, data: FontData<'a> ) -> Result<CmapSubtable<'a>, ReadError>
Attempt to resolve subtable_offset.
Trait Implementations§
source§impl Clone for EncodingRecord
impl Clone for EncodingRecord
source§fn clone(&self) -> EncodingRecord
fn clone(&self) -> EncodingRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EncodingRecord
impl Debug for EncodingRecord
source§impl FixedSize for EncodingRecord
impl FixedSize for EncodingRecord
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for EncodingRecord
impl<'a> SomeRecord<'a> for EncodingRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations§
impl RefUnwindSafe for EncodingRecord
impl Send for EncodingRecord
impl Sync for EncodingRecord
impl Unpin 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