pub enum ModalEasing {
Linear,
EaseOut,
EaseIn,
EaseInOut,
Back,
}Expand description
Easing function for modal animations.
Simplified subset of easing curves for modal animations.
For the full set, see ftui_extras::text_effects::Easing.
Variants§
Linear
Linear interpolation.
EaseOut
Smooth ease-out (decelerating) - good for entrances.
EaseIn
Smooth ease-in (accelerating) - good for exits.
EaseInOut
Smooth S-curve - good for general transitions.
Back
Slight overshoot then settle - bouncy feel.
Implementations§
Source§impl ModalEasing
impl ModalEasing
Trait Implementations§
Source§impl Clone for ModalEasing
impl Clone for ModalEasing
Source§fn clone(&self) -> ModalEasing
fn clone(&self) -> ModalEasing
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 ModalEasing
Source§impl Debug for ModalEasing
impl Debug for ModalEasing
Source§impl Default for ModalEasing
impl Default for ModalEasing
Source§fn default() -> ModalEasing
fn default() -> ModalEasing
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModalEasing
impl PartialEq for ModalEasing
Source§fn eq(&self, other: &ModalEasing) -> bool
fn eq(&self, other: &ModalEasing) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ModalEasing
Auto Trait Implementations§
impl Freeze for ModalEasing
impl RefUnwindSafe for ModalEasing
impl Send for ModalEasing
impl Sync for ModalEasing
impl Unpin for ModalEasing
impl UnsafeUnpin for ModalEasing
impl UnwindSafe for ModalEasing
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