pub struct AnimationPreset {
pub movement: Curve,
pub envelope: Curve,
pub duration: Duration,
}Expand description
Reusable movement, effect-strength and duration recommendations.
Pass these fields to animation/effect constructors explicitly. A preset does not compile shaders, change their progress clock or start playback. The default is ease-in-out movement, smooth 15 percent strength fades and a fixed two-second duration. This value is available on every platform.
Fields§
§movement: CurveSuggested position interpolation, reusable for either axis.
envelope: CurveSuggested effect strength; Effect still enforces clean endpoints.
duration: DurationSuggested fixed or distance-based timing policy.
Trait Implementations§
Source§impl Clone for AnimationPreset
impl Clone for AnimationPreset
Source§impl Debug for AnimationPreset
impl Debug for AnimationPreset
Auto Trait Implementations§
impl Freeze for AnimationPreset
impl RefUnwindSafe for AnimationPreset
impl Send for AnimationPreset
impl Sync for AnimationPreset
impl Unpin for AnimationPreset
impl UnsafeUnpin for AnimationPreset
impl UnwindSafe for AnimationPreset
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