pub struct AnimSpec {
pub duration_secs: f32,
pub delay_secs: f32,
pub easing: Easing,
}Fields§
§duration_secs: f32§delay_secs: f32§easing: EasingImplementations§
Source§impl AnimSpec
impl AnimSpec
pub const FAST: Self
pub const SLOW: Self
pub const SMOOTH: Self
pub const SNAPPY: Self
pub const GENTLE: Self
pub fn fast() -> Self
pub fn smooth() -> Self
pub fn snappy() -> Self
pub fn gentle() -> Self
pub fn slow() -> Self
pub fn linear(duration: Duration) -> Self
pub fn ease_out_cubic(duration: Duration) -> Self
pub fn ease_out(duration: Duration) -> Self
pub fn ease_in_out(duration: Duration) -> Self
pub fn from_duration(duration: Duration, easing: Easing) -> Self
pub fn delay_duration(self, d: Duration) -> Self
pub fn sample(&self, from: f32, to: f32, elapsed_secs: f32) -> f32
pub fn is_running(&self, elapsed_secs: f32) -> bool
Trait Implementations§
impl Copy for AnimSpec
impl StructuralPartialEq for AnimSpec
Auto Trait Implementations§
impl Freeze for AnimSpec
impl RefUnwindSafe for AnimSpec
impl Send for AnimSpec
impl Sync for AnimSpec
impl Unpin for AnimSpec
impl UnsafeUnpin for AnimSpec
impl UnwindSafe for AnimSpec
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