pub struct ActionArgs<'a, E: 'a, A: 'a, S: 'a> {
pub event: &'a E,
pub dt: f64,
pub action: &'a A,
pub state: &'a mut Option<S>,
}
Expand description
The arguments in the action callback.
Fields§
§event: &'a E
The event.
dt: f64
The remaining delta time.
action: &'a A
The action running.
state: &'a mut Option<S>
The state of the running action, if any.
Auto Trait Implementations§
impl<'a, E, A, S> Freeze for ActionArgs<'a, E, A, S>
impl<'a, E, A, S> RefUnwindSafe for ActionArgs<'a, E, A, S>
impl<'a, E, A, S> Send for ActionArgs<'a, E, A, S>
impl<'a, E, A, S> Sync for ActionArgs<'a, E, A, S>
impl<'a, E, A, S> Unpin for ActionArgs<'a, E, A, S>
impl<'a, E, A, S> !UnwindSafe for ActionArgs<'a, E, A, S>
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