Struct write_fonts::tables::layout::FeatureVariationRecord
source · pub struct FeatureVariationRecord {
pub condition_set: OffsetMarker<ConditionSet, WIDTH_32>,
pub feature_table_substitution: OffsetMarker<FeatureTableSubstitution, WIDTH_32>,
}Expand description
Part of FeatureVariations
Fields§
§condition_set: OffsetMarker<ConditionSet, WIDTH_32>Offset to a condition set table, from beginning of FeatureVariations table.
feature_table_substitution: OffsetMarker<FeatureTableSubstitution, WIDTH_32>Offset to a feature table substitution table, from beginning of the FeatureVariations table.
Implementations§
source§impl FeatureVariationRecord
impl FeatureVariationRecord
sourcepub fn new(
condition_set: ConditionSet,
feature_table_substitution: FeatureTableSubstitution
) -> Self
pub fn new( condition_set: ConditionSet, feature_table_substitution: FeatureTableSubstitution ) -> Self
Construct a new FeatureVariationRecord
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 Default for FeatureVariationRecord
impl Default for FeatureVariationRecord
source§fn default() -> FeatureVariationRecord
fn default() -> FeatureVariationRecord
Returns the “default value” for a type. Read more
source§impl FontWrite for FeatureVariationRecord
impl FontWrite for FeatureVariationRecord
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
fn name(&self) -> &'static str
source§impl FromObjRef<FeatureVariationRecord> for FeatureVariationRecord
impl FromObjRef<FeatureVariationRecord> for FeatureVariationRecord
source§fn from_obj_ref(obj: &FeatureVariationRecord, offset_data: FontData<'_>) -> Self
fn from_obj_ref(obj: &FeatureVariationRecord, offset_data: FontData<'_>) -> Self
Convert
from to an instance of Self, using the provided data to resolve offsets.source§impl Validate for FeatureVariationRecord
impl Validate for FeatureVariationRecord
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
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§
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<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.