pub struct ActionSelectorImpl;
Expand description
Implementation of the ActionSelector trait.
Trait Implementations§
Source§impl ActionSelector for ActionSelectorImpl
impl ActionSelector for ActionSelectorImpl
Source§fn select_action(&self, events: Vec<Event>) -> (Box<dyn Action>, Vec<u32>)
fn select_action(&self, events: Vec<Event>) -> (Box<dyn Action>, Vec<u32>)
Selects an action based on the given event.
Arguments:
*
events
- A vector of Event instances in the current event pool.
Returns:
* A tuple containing the selected action
and the IDs of the events that is going to be removed from event pool.Source§impl Default for ActionSelectorImpl
impl Default for ActionSelectorImpl
Source§fn default() -> ActionSelectorImpl
fn default() -> ActionSelectorImpl
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActionSelectorImpl
impl RefUnwindSafe for ActionSelectorImpl
impl Send for ActionSelectorImpl
impl Sync for ActionSelectorImpl
impl Unpin for ActionSelectorImpl
impl UnwindSafe for ActionSelectorImpl
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