Struct read_fonts::tables::layout::ScriptRecord
source · #[repr(C, packed(1))]pub struct ScriptRecord {
pub script_tag: BigEndian<Tag>,
pub script_offset: BigEndian<Offset16>,
}
Expand description
Fields§
§script_tag: BigEndian<Tag>
4-byte script tag identifier
script_offset: BigEndian<Offset16>
Offset to Script table, from beginning of ScriptList
Implementations§
source§impl ScriptRecord
impl ScriptRecord
sourcepub fn script_tag(&self) -> Tag
pub fn script_tag(&self) -> Tag
4-byte script tag identifier
sourcepub fn script_offset(&self) -> Offset16
pub fn script_offset(&self) -> Offset16
Offset to Script table, from beginning of ScriptList
Trait Implementations§
source§impl Clone for ScriptRecord
impl Clone for ScriptRecord
source§fn clone(&self) -> ScriptRecord
fn clone(&self) -> ScriptRecord
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 ScriptRecord
impl Debug for ScriptRecord
source§impl FixedSize for ScriptRecord
impl FixedSize for ScriptRecord
source§const RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for ScriptRecord
impl<'a> SomeRecord<'a> for ScriptRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for ScriptRecord
impl Copy for ScriptRecord
Auto Trait Implementations§
impl Freeze for ScriptRecord
impl RefUnwindSafe for ScriptRecord
impl Send for ScriptRecord
impl Sync for ScriptRecord
impl Unpin for ScriptRecord
impl UnwindSafe for ScriptRecord
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
.