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
sourceimpl 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
sourceimpl Clone for EncodingRecord
impl Clone for EncodingRecord
sourcefn clone(&self) -> EncodingRecord
fn clone(&self) -> EncodingRecord
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EncodingRecord
impl Debug for EncodingRecord
sourceimpl FixedSize for EncodingRecord
impl FixedSize for EncodingRecord
sourceconst RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more