Enum CurveKind Copy item path Source pub enum CurveKind<T> {
Step,
Linear,
Slow,
Fast,
Smooth,
Bezier(BezierCurve <T>),
Unknown(i32 ),
}Expand description Belongs to a envelope point.
Describes the change in value from this point to the next.
For math: frac is where the interpolate between the two points (0 is at first point, 1 at second, 0.5 halfway),
The resulting value then mixes the two values: left + (right - left) * result.
Value of first point until second point, abrupt change there.
Linear interpolation between the two points.
Math: frac
First slow, later much faster value change.
Math: frac^3
First fast, later much slower value change.
Math: 1 - (1 - frac)^3
Slow, faster then once more slow value change.
Math: 3 * frac^2 - 2 * frac^3
Very flexible curve, each channel individually.
Uses bezier curves for interpolation.
Only kind of curve where every channel gets their own interpolation values.
For compatibility, will error on check.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more Deserialize this value from the given Serde deserializer.
Read more Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
Serialize this value into the given Serde serializer.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.