Struct read_fonts::layout::FeatureTableSubstitutionRecord
source · [−]#[repr(C)]#[repr(packed)]pub struct FeatureTableSubstitutionRecord {
pub feature_index: BigEndian<u16>,
pub alternate_feature_offset: BigEndian<Offset32>,
}Expand description
Used in FeatureTableSubstitution
Fields
feature_index: BigEndian<u16>The feature table index to match.
alternate_feature_offset: BigEndian<Offset32>Offset to an alternate feature table, from start of the FeatureTableSubstitution table.
Implementations
sourceimpl FeatureTableSubstitutionRecord
impl FeatureTableSubstitutionRecord
sourcepub fn feature_index(&self) -> u16
pub fn feature_index(&self) -> u16
The feature table index to match.
sourcepub fn alternate_feature_offset(&self) -> Offset32
pub fn alternate_feature_offset(&self) -> Offset32
Offset to an alternate feature table, from start of the FeatureTableSubstitution table.
Trait Implementations
sourceimpl Clone for FeatureTableSubstitutionRecord
impl Clone for FeatureTableSubstitutionRecord
sourcefn clone(&self) -> FeatureTableSubstitutionRecord
fn clone(&self) -> FeatureTableSubstitutionRecord
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 FixedSize for FeatureTableSubstitutionRecord
impl FixedSize for FeatureTableSubstitutionRecord
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 FeatureTableSubstitutionRecord
impl<'a> SomeRecord<'a> for FeatureTableSubstitutionRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations
impl RefUnwindSafe for FeatureTableSubstitutionRecord
impl Send for FeatureTableSubstitutionRecord
impl Sync for FeatureTableSubstitutionRecord
impl Unpin for FeatureTableSubstitutionRecord
impl UnwindSafe for FeatureTableSubstitutionRecord
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