#[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
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
.