pub struct Motion { /* private fields */ }Implementations§
Source§impl Motion
impl Motion
pub fn slide_y(self, px: f32) -> Motion
pub fn slide(self, dx: f32, dy: f32) -> Motion
pub fn fade_from(self, from: f32) -> Motion
pub fn duration(self, d: Duration) -> Motion
pub fn easing(self, easing: Easing) -> Motion
pub fn delay(self, d: Duration) -> Motion
pub fn preset(self, spec: impl Into<AnimSpec>) -> Motion
pub fn sample_at(&self, elapsed_secs: f32) -> (Option<f32>, Option<Vec2>)
pub fn is_running(&self, elapsed_secs: f32) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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