pub enum AnimationKind {
Default,
EaseIn,
EaseInOut,
EaseOut,
Linear,
}Expand description
SwiftUI.Animation’s built-in curves, as the static vars they are.
Named AnimationKind rather than Animation because
crate::render::Animation — a captured sequence of frames — already
holds that name in the prelude, and the two are unrelated.
The timed forms (easeInOut(duration:), spring(…)) are methods,
not statics, and so are not here; crate::state calls one of them
directly.
Variants§
Trait Implementations§
Source§impl Clone for AnimationKind
impl Clone for AnimationKind
impl Copy for AnimationKind
Source§impl Debug for AnimationKind
impl Debug for AnimationKind
impl Eq for AnimationKind
Source§impl From<Default> for AnimationKind
impl From<Default> for AnimationKind
Source§impl From<EaseIn> for AnimationKind
impl From<EaseIn> for AnimationKind
Source§impl From<EaseInOut> for AnimationKind
impl From<EaseInOut> for AnimationKind
Source§impl From<EaseOut> for AnimationKind
impl From<EaseOut> for AnimationKind
Source§impl From<Linear> for AnimationKind
impl From<Linear> for AnimationKind
Source§impl PartialEq for AnimationKind
impl PartialEq for AnimationKind
impl StructuralPartialEq for AnimationKind
Auto Trait Implementations§
impl Freeze for AnimationKind
impl RefUnwindSafe for AnimationKind
impl Send for AnimationKind
impl Sync for AnimationKind
impl Unpin for AnimationKind
impl UnsafeUnpin for AnimationKind
impl UnwindSafe for AnimationKind
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