Enum ttf_parser::tables::gvar::VariationTuples
source · enum VariationTuples<'a> {
Stack {
headers: [VariationTuple<'a>; 32],
len: u16,
},
}
Expand description
A list of variation tuples, possibly stored on the heap.
This is the only part of the gvar
algorithm that actually allocates a data.
This is probably unavoidable due to gvar
structure,
since we have to iterate all tuples in parallel.
Variants§
Implementations§
source§impl<'a> VariationTuples<'a>
impl<'a> VariationTuples<'a>
sourcefn reserve(&mut self, capacity: u16) -> bool
fn reserve(&mut self, capacity: u16) -> bool
Attempt to reserve up to capacity
total slots for variation tuples.
sourcefn push(&mut self, header: VariationTuple<'a>)
fn push(&mut self, header: VariationTuple<'a>)
Append a new tuple header to the list. This may panic if the list can’t hold a new header.
fn as_mut_slice(&mut self) -> &mut [VariationTuple<'a>]
fn apply( &mut self, all_points: GlyphPointsIter<'_>, points: GlyphPointsIter<'_>, point: GlyphPoint, ) -> Option<PointF>
fn apply_null(&mut self) -> Option<PointF>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VariationTuples<'a>
impl<'a> RefUnwindSafe for VariationTuples<'a>
impl<'a> Send for VariationTuples<'a>
impl<'a> Sync for VariationTuples<'a>
impl<'a> Unpin for VariationTuples<'a>
impl<'a> UnwindSafe for VariationTuples<'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