pub enum AxisValueSubtable<'a> {
    Format1(AxisValueSubtableFormat1),
    Format2(AxisValueSubtableFormat2),
    Format3(AxisValueSubtableFormat3),
    Format4(AxisValueSubtableFormat4<'a>),
}Expand description
Variants§
Format1(AxisValueSubtableFormat1)
Format2(AxisValueSubtableFormat2)
Format3(AxisValueSubtableFormat3)
Format4(AxisValueSubtableFormat4<'a>)
Implementations§
Source§impl<'a> AxisValueSubtable<'a>
 
impl<'a> AxisValueSubtable<'a>
Sourcepub fn value(&self) -> Option<Fixed>
 
pub fn value(&self) -> Option<Fixed>
Returns the value from an axis value subtable.
For formats 1 and 3 the value is returned, for formats 2 and 4 None is returned as there
is no single value associated with those formats.
Sourcepub fn contains(&self, value: Fixed) -> bool
 
pub fn contains(&self, value: Fixed) -> bool
Returns true if the axis subtable either is the value or is a range that contains the
value passed in as an argument.
Note: this will always return false for format 4 subtables as they may contain multiple axes.
fn flags(&self) -> AxisValueFlags
Sourcepub fn is_elidable(&self) -> bool
 
pub fn is_elidable(&self) -> bool
Returns true if the axis subtable has the ELIDABLE_AXIS_VALUE_NAME flag set.
Sourcepub fn is_older_sibling(&self) -> bool
 
pub fn is_older_sibling(&self) -> bool
Returns true if the axis subtable has the OLDER_SIBLING_FONT_ATTRIBUTE flag set.
Trait Implementations§
Source§impl<'a> Clone for AxisValueSubtable<'a>
 
impl<'a> Clone for AxisValueSubtable<'a>
Source§fn clone(&self) -> AxisValueSubtable<'a>
 
fn clone(&self) -> AxisValueSubtable<'a>
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<'a> Debug for AxisValueSubtable<'a>
 
impl<'a> Debug for AxisValueSubtable<'a>
impl<'a> Copy for AxisValueSubtable<'a>
Auto Trait Implementations§
impl<'a> Freeze for AxisValueSubtable<'a>
impl<'a> RefUnwindSafe for AxisValueSubtable<'a>
impl<'a> Send for AxisValueSubtable<'a>
impl<'a> Sync for AxisValueSubtable<'a>
impl<'a> Unpin for AxisValueSubtable<'a>
impl<'a> UnwindSafe for AxisValueSubtable<'a>
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