pub enum EasingFunction {
Linear,
Ease,
EaseIn,
EaseOut,
EaseInOut,
StepStart,
StepEnd,
CubicBezier(f32, f32, f32, f32),
Steps(u32, StepPosition),
}Expand description
A CSS <easing-function> value.
Variants§
Linear
linear — constant rate.
Ease
ease — slow start, then fast, then end slowly. Default for
transition-timing-function.
EaseIn
ease-in — slow at the start.
EaseOut
ease-out — slow at the end.
EaseInOut
ease-in-out — slow at both ends.
StepStart
step-start — equivalent to steps(1, jump-start).
StepEnd
step-end — equivalent to steps(1, jump-end).
CubicBezier(f32, f32, f32, f32)
cubic-bezier(x1, y1, x2, y2) — custom Bézier curve. The
x coordinates must be in 0.0..=1.0; Lynx will clamp
values outside that range.
Steps(u32, StepPosition)
steps(<n>, <position>) — discrete jumps.
Trait Implementations§
Source§impl Clone for EasingFunction
impl Clone for EasingFunction
Source§fn clone(&self) -> EasingFunction
fn clone(&self) -> EasingFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EasingFunction
Source§impl Debug for EasingFunction
impl Debug for EasingFunction
Source§impl PartialEq for EasingFunction
impl PartialEq for EasingFunction
Source§fn eq(&self, other: &EasingFunction) -> bool
fn eq(&self, other: &EasingFunction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EasingFunction
Auto Trait Implementations§
impl Freeze for EasingFunction
impl RefUnwindSafe for EasingFunction
impl Send for EasingFunction
impl Sync for EasingFunction
impl Unpin for EasingFunction
impl UnsafeUnpin for EasingFunction
impl UnwindSafe for EasingFunction
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