Struct read_fonts::tables::name::NameRecord
source · #[repr(C, packed(1))]pub struct NameRecord {
pub platform_id: BigEndian<u16>,
pub encoding_id: BigEndian<u16>,
pub language_id: BigEndian<u16>,
pub name_id: BigEndian<NameId>,
pub length: BigEndian<u16>,
pub string_offset: BigEndian<Offset16>,
}
Expand description
Fields§
§platform_id: BigEndian<u16>
Platform ID.
encoding_id: BigEndian<u16>
Platform-specific encoding ID.
language_id: BigEndian<u16>
Language ID.
name_id: BigEndian<NameId>
Name ID.
length: BigEndian<u16>
String length (in bytes).
string_offset: BigEndian<Offset16>
String offset from start of storage area (in bytes).
Implementations§
source§impl NameRecord
impl NameRecord
sourcepub fn platform_id(&self) -> u16
pub fn platform_id(&self) -> u16
Platform ID.
sourcepub fn encoding_id(&self) -> u16
pub fn encoding_id(&self) -> u16
Platform-specific encoding ID.
sourcepub fn language_id(&self) -> u16
pub fn language_id(&self) -> u16
Language ID.
sourcepub fn string_offset(&self) -> Offset16
pub fn string_offset(&self) -> Offset16
String offset from start of storage area (in bytes).
source§impl NameRecord
impl NameRecord
Trait Implementations§
source§impl Clone for NameRecord
impl Clone for NameRecord
source§fn clone(&self) -> NameRecord
fn clone(&self) -> NameRecord
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 NameRecord
impl Debug for NameRecord
source§impl FixedSize for NameRecord
impl FixedSize for NameRecord
source§const RAW_BYTE_LEN: usize = 12usize
const RAW_BYTE_LEN: usize = 12usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for NameRecord
impl<'a> SomeRecord<'a> for NameRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for NameRecord
impl Copy for NameRecord
Auto Trait Implementations§
impl Freeze for NameRecord
impl RefUnwindSafe for NameRecord
impl Send for NameRecord
impl Sync for NameRecord
impl Unpin for NameRecord
impl UnwindSafe for NameRecord
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,
§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
.