Struct read_fonts::tables::cmap::EncodingRecord
source · #[repr(C, packed(1))]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 the Cmap
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 the Cmap
table to the subtable for this
encoding.
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>
impl AnyBitPattern for EncodingRecord
impl Copy 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 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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)