pub enum Easing {
Linear,
CubicBezier(CubicBezier),
Steps(Steps),
Points {
points: Vec<EasingPoint>,
},
}Expand description
A timing curve from linear progress to eased progress, without a hold.
Transitions use it directly; keyframe crate::Interpolation adds hold.
Variants§
Linear
Progress advances at a constant rate.
CubicBezier(CubicBezier)
Progress follows a CSS cubic-bezier() curve.
Steps(Steps)
Progress rises in equal steps, as CSS steps().
Points
Progress follows straight lines through a table of points, as CSS linear(): from
(0, 0) through each point to (1, 1).
Fields
§
points: Vec<EasingPoint>The points between the two ends, rising strictly in x; at most
MAX_EASING_POINTS.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Easing
impl<'de> Deserialize<'de> for Easing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Easing> for Interpolation
impl From<Easing> for Interpolation
impl StructuralPartialEq for Easing
Auto Trait Implementations§
impl Forget for Easing
impl Freeze for Easing
impl Move for Easing
impl RefUnwindSafe for Easing
impl Send for Easingwhere
RawVecInner: Send,
impl Sync for Easingwhere
RawVecInner: Sync,
impl Unpin for Easing
impl UnsafeUnpin for Easing
impl UnwindSafe for Easingwhere
RawVecInner: UnwindSafe,
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