Struct read_fonts::tables::base::BaseScriptRecord
source · #[repr(C, packed(1))]pub struct BaseScriptRecord {
pub base_script_tag: BigEndian<Tag>,
pub base_script_offset: BigEndian<Offset16>,
}
Expand description
Fields§
§base_script_tag: BigEndian<Tag>
4-byte script identification tag
base_script_offset: BigEndian<Offset16>
Offset to BaseScript table, from beginning of BaseScriptList
Implementations§
source§impl BaseScriptRecord
impl BaseScriptRecord
sourcepub fn base_script_tag(&self) -> Tag
pub fn base_script_tag(&self) -> Tag
4-byte script identification tag
sourcepub fn base_script_offset(&self) -> Offset16
pub fn base_script_offset(&self) -> Offset16
Offset to BaseScript table, from beginning of BaseScriptList
sourcepub fn base_script<'a>(
&self,
data: FontData<'a>
) -> Result<BaseScript<'a>, ReadError>
pub fn base_script<'a>( &self, data: FontData<'a> ) -> Result<BaseScript<'a>, ReadError>
Offset to BaseScript table, from beginning of BaseScriptList
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
Trait Implementations§
source§impl Clone for BaseScriptRecord
impl Clone for BaseScriptRecord
source§fn clone(&self) -> BaseScriptRecord
fn clone(&self) -> BaseScriptRecord
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 BaseScriptRecord
impl Debug for BaseScriptRecord
source§impl FixedSize for BaseScriptRecord
impl FixedSize for BaseScriptRecord
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 BaseScriptRecord
impl<'a> SomeRecord<'a> for BaseScriptRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for BaseScriptRecord
impl Copy for BaseScriptRecord
Auto Trait Implementations§
impl Freeze for BaseScriptRecord
impl RefUnwindSafe for BaseScriptRecord
impl Send for BaseScriptRecord
impl Sync for BaseScriptRecord
impl Unpin for BaseScriptRecord
impl UnwindSafe for BaseScriptRecord
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
.