#[repr(C, packed(1))]pub struct LangTagRecord {
pub length: BigEndian<u16>,
pub lang_tag_offset: BigEndian<Offset16>,
}
Expand description
Part of Name
Fields§
§length: BigEndian<u16>
Language-tag string length (in bytes)
lang_tag_offset: BigEndian<Offset16>
Language-tag string offset from start of storage area (in bytes).
Implementations§
Source§impl LangTagRecord
impl LangTagRecord
Source§impl LangTagRecord
impl LangTagRecord
Source§impl LangTagRecord
impl LangTagRecord
fn traverse_lang_tag<'a>(&self, data: FontData<'a>) -> FieldType<'a>
Trait Implementations§
Source§impl Clone for LangTagRecord
impl Clone for LangTagRecord
Source§fn clone(&self) -> LangTagRecord
fn clone(&self) -> LangTagRecord
Returns a duplicate 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 LangTagRecord
impl Debug for LangTagRecord
Source§impl FixedSize for LangTagRecord
impl FixedSize for LangTagRecord
Source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
Source§impl<'a> SomeRecord<'a> for LangTagRecord
impl<'a> SomeRecord<'a> for LangTagRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for LangTagRecord
impl Copy for LangTagRecord
Auto Trait Implementations§
impl Freeze for LangTagRecord
impl RefUnwindSafe for LangTagRecord
impl Send for LangTagRecord
impl Sync for LangTagRecord
impl Unpin for LangTagRecord
impl UnwindSafe for LangTagRecord
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
.