pub struct VariationBlock {
pub name: SmolStr,
pub conditionset: String,
pub statements: Vec<Statement>,
pub use_extension: bool,
pub location: Range<usize>,
}Expand description
A variable layout variation block.
Example:
variation rvrn heavy {
lookup symbols_heavy;
} rvrn;Fields§
§name: SmolStrThe feature tag for this variation
conditionset: StringThe name of the conditionset this variation applies to
statements: Vec<Statement>Statements within this variation block
use_extension: boolWhether to use extension subtables
location: Range<usize>Location in the source FEA file
Implementations§
Trait Implementations§
Source§impl AsFea for VariationBlock
impl AsFea for VariationBlock
Source§impl Clone for VariationBlock
impl Clone for VariationBlock
Source§fn clone(&self) -> VariationBlock
fn clone(&self) -> VariationBlock
Returns a duplicate 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 VariationBlock
impl Debug for VariationBlock
Source§impl From<FeatureVariation> for VariationBlock
impl From<FeatureVariation> for VariationBlock
Source§fn from(val: FeatureVariation) -> Self
fn from(val: FeatureVariation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for VariationBlock
impl PartialEq for VariationBlock
impl Eq for VariationBlock
impl StructuralPartialEq for VariationBlock
Auto Trait Implementations§
impl Freeze for VariationBlock
impl RefUnwindSafe for VariationBlock
impl Send for VariationBlock
impl Sync for VariationBlock
impl Unpin for VariationBlock
impl UnsafeUnpin for VariationBlock
impl UnwindSafe for VariationBlock
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.