Struct read_fonts::layout::FeatureVariationRecord
source · [−]#[repr(C)]#[repr(packed)]pub struct FeatureVariationRecord {
pub condition_set_offset: BigEndian<Offset32>,
pub feature_table_substitution_offset: BigEndian<Offset32>,
}Expand description
Part of FeatureVariations
Fields
condition_set_offset: BigEndian<Offset32>Offset to a condition set table, from beginning of FeatureVariations table.
feature_table_substitution_offset: BigEndian<Offset32>Offset to a feature table substitution table, from beginning of the FeatureVariations table.
Implementations
sourceimpl FeatureVariationRecord
impl FeatureVariationRecord
sourcepub fn condition_set_offset(&self) -> Offset32
pub fn condition_set_offset(&self) -> Offset32
Offset to a condition set table, from beginning of FeatureVariations table.
sourcepub fn condition_set<'a>(
&self,
data: FontData<'a>
) -> Result<ConditionSet<'a>, ReadError>
pub fn condition_set<'a>(
&self,
data: FontData<'a>
) -> Result<ConditionSet<'a>, ReadError>
Attempt to resolve condition_set_offset.
sourcepub fn feature_table_substitution_offset(&self) -> Offset32
pub fn feature_table_substitution_offset(&self) -> Offset32
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
sourcepub fn feature_table_substitution<'a>(
&self,
data: FontData<'a>
) -> Result<FeatureTableSubstitution<'a>, ReadError>
pub fn feature_table_substitution<'a>(
&self,
data: FontData<'a>
) -> Result<FeatureTableSubstitution<'a>, ReadError>
Attempt to resolve feature_table_substitution_offset.
Trait Implementations
sourceimpl Clone for FeatureVariationRecord
impl Clone for FeatureVariationRecord
sourcefn clone(&self) -> FeatureVariationRecord
fn clone(&self) -> FeatureVariationRecord
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 FeatureVariationRecord
impl Debug for FeatureVariationRecord
sourceimpl FixedSize for FeatureVariationRecord
impl FixedSize for FeatureVariationRecord
sourceconst RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
sourceimpl<'a> SomeRecord<'a> for FeatureVariationRecord
impl<'a> SomeRecord<'a> for FeatureVariationRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations
impl RefUnwindSafe for FeatureVariationRecord
impl Send for FeatureVariationRecord
impl Sync for FeatureVariationRecord
impl Unpin for FeatureVariationRecord
impl UnwindSafe for FeatureVariationRecord
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