Struct read_fonts::tables::layout::FeatureVariationRecord
source · #[repr(C, packed(1))]pub struct FeatureVariationRecord {
pub condition_set_offset: BigEndian<Nullable<Offset32>>,
pub feature_table_substitution_offset: BigEndian<Nullable<Offset32>>,
}
Expand description
Part of FeatureVariations
Fields§
§condition_set_offset: BigEndian<Nullable<Offset32>>
Offset to a condition set table, from beginning of FeatureVariations table.
feature_table_substitution_offset: BigEndian<Nullable<Offset32>>
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
Implementations§
source§impl FeatureVariationRecord
impl FeatureVariationRecord
sourcepub fn condition_set_offset(&self) -> Nullable<Offset32>
pub fn condition_set_offset(&self) -> Nullable<Offset32>
Offset to a condition set table, from beginning of FeatureVariations table.
sourcepub fn condition_set<'a>(
&self,
data: FontData<'a>
) -> Option<Result<ConditionSet<'a>, ReadError>>
pub fn condition_set<'a>( &self, data: FontData<'a> ) -> Option<Result<ConditionSet<'a>, ReadError>>
Offset to a condition set table, from beginning of FeatureVariations table.
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
sourcepub fn feature_table_substitution_offset(&self) -> Nullable<Offset32>
pub fn feature_table_substitution_offset(&self) -> Nullable<Offset32>
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
sourcepub fn feature_table_substitution<'a>(
&self,
data: FontData<'a>
) -> Option<Result<FeatureTableSubstitution<'a>, ReadError>>
pub fn feature_table_substitution<'a>( &self, data: FontData<'a> ) -> Option<Result<FeatureTableSubstitution<'a>, ReadError>>
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
The data
argument should be retrieved from the parent table
By calling its offset_data
method.
Trait Implementations§
source§impl Clone for FeatureVariationRecord
impl Clone for FeatureVariationRecord
source§fn clone(&self) -> FeatureVariationRecord
fn clone(&self) -> FeatureVariationRecord
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 FeatureVariationRecord
impl Debug for FeatureVariationRecord
source§impl FixedSize for FeatureVariationRecord
impl FixedSize for FeatureVariationRecord
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for FeatureVariationRecord
impl<'a> SomeRecord<'a> for FeatureVariationRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for FeatureVariationRecord
impl Copy for FeatureVariationRecord
Auto Trait Implementations§
impl Freeze for FeatureVariationRecord
impl RefUnwindSafe for FeatureVariationRecord
impl Send for FeatureVariationRecord
impl Sync for FeatureVariationRecord
impl Unpin for FeatureVariationRecord
impl UnwindSafe for FeatureVariationRecord
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
.