pub struct ActionUpdate { /* private fields */ }Implementations§
Source§impl ActionUpdate
impl ActionUpdate
pub fn new( update: Box<dyn FnMut(&Unit, &UnitAction, f32) -> bool>, ) -> ActionUpdate
Source§impl ActionUpdate
impl ActionUpdate
pub fn from_update(update: Box<dyn FnMut(f64) -> bool>) -> ActionUpdate
Trait Implementations§
Source§impl Clone for ActionUpdate
impl Clone for ActionUpdate
Source§fn clone(&self) -> ActionUpdate
fn clone(&self) -> ActionUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Drop for ActionUpdate
impl Drop for ActionUpdate
Auto Trait Implementations§
impl Freeze for ActionUpdate
impl RefUnwindSafe for ActionUpdate
impl Send for ActionUpdate
impl Sync for ActionUpdate
impl Unpin for ActionUpdate
impl UnwindSafe for ActionUpdate
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