Struct read_fonts::tables::layout::ScriptRecord
source · #[repr(C)]#[repr(packed)]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>
Auto Trait Implementations§
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