pub struct TupleVariation {
pub peak: Vec<F2Dot14>,
pub shared_peak_index: u16,
pub start: Option<Vec<F2Dot14>>,
pub end: Option<Vec<F2Dot14>>,
pub point_numbers: Option<Vec<u16>>,
pub x_deltas: Vec<i32>,
pub y_deltas: Vec<i32>,
}Expand description
One variation tuple: peak coordinates plus resolved x/y deltas.
Deltas apply to the outline points listed in point_numbers, or to
all points of the glyph when point_numbers is None.
Fields§
§peak: Vec<F2Dot14>Peak coordinates per axis (embedded, shared-indexed, or empty).
Index into the shared-tuples array when the peak is not embedded.
start: Option<Vec<F2Dot14>>Intermediate region start coordinates, when declared.
end: Option<Vec<F2Dot14>>Intermediate region end coordinates, when declared.
point_numbers: Option<Vec<u16>>Point indices the deltas apply to (None = all points).
x_deltas: Vec<i32>Per-point x deltas, run-decoded (not cumulative).
y_deltas: Vec<i32>Per-point y deltas.
Implementations§
Source§impl TupleVariation
impl TupleVariation
Sourcepub const fn has_private_points(&self) -> bool
pub const fn has_private_points(&self) -> bool
True when the tuple carries its own packed point numbers.
Trait Implementations§
Source§impl Clone for TupleVariation
impl Clone for TupleVariation
Source§impl Debug for TupleVariation
impl Debug for TupleVariation
impl Eq for TupleVariation
Source§impl PartialEq for TupleVariation
impl PartialEq for TupleVariation
impl StructuralPartialEq for TupleVariation
Auto Trait Implementations§
impl Freeze for TupleVariation
impl RefUnwindSafe for TupleVariation
impl Send for TupleVariation
impl Sync for TupleVariation
impl Unpin for TupleVariation
impl UnsafeUnpin for TupleVariation
impl UnwindSafe for TupleVariation
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