Struct read_fonts::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
sourceimpl 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
sourceimpl Clone for ScriptRecord
impl Clone for ScriptRecord
sourcefn clone(&self) -> ScriptRecord
fn clone(&self) -> ScriptRecord
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ScriptRecord
impl Debug for ScriptRecord
sourceimpl FixedSize for ScriptRecord
impl FixedSize for ScriptRecord
sourceconst RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more