pub struct ConditionSet {
pub name: String,
pub conditions: Vec<(String, f32, f32)>,
pub location: Range<usize>,
}Expand description
A variable layout conditionset.
Example:
conditionset heavy {
wght 700 900;
} heavy;Fields§
§name: StringThe name of this conditionset
conditions: Vec<(String, f32, f32)>A map of axis tags to (min, max) userspace coordinates
location: Range<usize>Location in the source FEA file
Implementations§
Trait Implementations§
Source§impl AsFea for ConditionSet
impl AsFea for ConditionSet
Source§impl Clone for ConditionSet
impl Clone for ConditionSet
Source§fn clone(&self) -> ConditionSet
fn clone(&self) -> ConditionSet
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 ConditionSet
impl Debug for ConditionSet
Source§impl From<ConditionSet> for ConditionSet
impl From<ConditionSet> for ConditionSet
Source§fn from(val: ConditionSet) -> Self
fn from(val: ConditionSet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConditionSet
impl PartialEq for ConditionSet
impl Eq for ConditionSet
impl StructuralPartialEq for ConditionSet
Auto Trait Implementations§
impl Freeze for ConditionSet
impl RefUnwindSafe for ConditionSet
impl Send for ConditionSet
impl Sync for ConditionSet
impl Unpin for ConditionSet
impl UnsafeUnpin for ConditionSet
impl UnwindSafe for ConditionSet
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.