pub enum EditEase {
Linear,
InCubic,
OutCubic,
InOutCubic,
InOutSine,
}Expand description
Easing curve for a zoom’s in/out animation. A deliberately small,
serde-friendly subset of the full wisp_animation::Ease set (which
includes a non-serializable function-pointer variant). The renderer
maps these to wisp_animation::Ease at ED.13/ED.16.
The default, EditEase::InOutCubic, is the “Easy Ease” equivalent —
smooth acceleration in and deceleration out, which covers the vast
majority of zoom feels before any manual curve editing.
Variants§
Linear
Constant rate — mechanical, rarely wanted for a zoom.
InCubic
Accelerate in.
OutCubic
Decelerate out.
InOutCubic
Smooth in and out — the “Easy Ease” default.
InOutSine
Gentle sinusoidal in and out.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditEase
impl<'de> Deserialize<'de> for EditEase
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
impl Copy for EditEase
impl Eq for EditEase
impl StructuralPartialEq for EditEase
Auto Trait Implementations§
impl Freeze for EditEase
impl RefUnwindSafe for EditEase
impl Send for EditEase
impl Sync for EditEase
impl Unpin for EditEase
impl UnsafeUnpin for EditEase
impl UnwindSafe for EditEase
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