pub enum EasingChoice {
Named(String),
Spring(SpringChoice),
Curve(Easing),
}Expand description
A timing curve: a name, a CSS easing function, a spring or a project easing object.
Variants§
Named(String)
A name or a CSS easing function. The names are linear, ease, ease-in, ease-out,
ease-in-out, step-start, step-end, and ease-in-, ease-out- or ease-in-out-
before sine, quad, cubic, quart, quint, expo, circ, back, elastic or
bounce. The functions are cubic-bezier(x1, y1, x2, y2), steps(count),
steps(count, position) with a CSS position word, and linear(...) whose points start
at 0, end at 1 and rise in input.
Spring(SpringChoice)
A spring.
Curve(Easing)
A project easing.
Trait Implementations§
Source§impl Clone for EasingChoice
impl Clone for EasingChoice
Source§impl Debug for EasingChoice
impl Debug for EasingChoice
Source§impl<'de> Deserialize<'de> for EasingChoice
impl<'de> Deserialize<'de> for EasingChoice
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EasingChoice
impl PartialEq for EasingChoice
Source§impl Serialize for EasingChoice
impl Serialize for EasingChoice
impl StructuralPartialEq for EasingChoice
Auto Trait Implementations§
impl Forget for EasingChoice
impl Freeze for EasingChoice
impl Move for EasingChoice
impl RefUnwindSafe for EasingChoice
impl Send for EasingChoicewhere
RawVecInner: Send,
impl Sync for EasingChoicewhere
RawVecInner: Sync,
impl Unpin for EasingChoice
impl UnsafeUnpin for EasingChoicewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<EasingPoint>: UnsafeUnpin,
impl UnwindSafe for EasingChoicewhere
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