Struct sim_by_fired_event::NothingEventSimulator [−][src]
simulator for Nothing event
Implementations
impl<M, Rec> NothingEventSimulator<M, Rec> where
M: NothingEventModel<Rec>,
[src]
M: NothingEventModel<Rec>,
pub fn new() -> Self where
M: Default,
Rec: Default,
[src]
M: Default,
Rec: Default,
create as default
pub fn create_from(model: M, recorder: Rec) -> Self
[src]
create simulator from model
pub fn get_model(&self) -> &M
[src]
getter for model
pub fn get_recorder(&self) -> &Rec
[src]
getter for recorder
pub fn get_recorder_as_mut(&mut self) -> &mut Rec
[src]
getter for recorder
pub fn swap_recorder(&mut self, new_recorder: Rec) -> Rec
[src]
swap new and old recorder with get old recorder.
pub fn run_step(&mut self)
[src]
run simulate for one frame
pub fn run_n<FC: FrameCounter>(&mut self, counter: FC)
[src]
run simulate for frames
pub fn run_until<F>(&mut self, can_continue: F) where
F: Fn(&M) -> bool,
[src]
F: Fn(&M) -> bool,
run simulation until condition is true
pub fn run_with_state<F, P>(&mut self, update_state: F, can_continue: P) where
F: Fn(&mut M),
P: Fn(&M) -> bool,
[src]
F: Fn(&mut M),
P: Fn(&M) -> bool,
run simulation with update model’s state
Trait Implementations
impl<M: Clone, Rec: Clone> Clone for NothingEventSimulator<M, Rec> where
M: NothingEventModel<Rec>,
[src]
M: NothingEventModel<Rec>,
fn clone(&self) -> NothingEventSimulator<M, Rec>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M: Debug, Rec: Debug> Debug for NothingEventSimulator<M, Rec> where
M: NothingEventModel<Rec>,
[src]
M: NothingEventModel<Rec>,
Auto Trait Implementations
impl<M, Rec> RefUnwindSafe for NothingEventSimulator<M, Rec> where
M: RefUnwindSafe,
Rec: RefUnwindSafe,
M: RefUnwindSafe,
Rec: RefUnwindSafe,
impl<M, Rec> Send for NothingEventSimulator<M, Rec> where
M: Send,
Rec: Send,
M: Send,
Rec: Send,
impl<M, Rec> Sync for NothingEventSimulator<M, Rec> where
M: Sync,
Rec: Sync,
M: Sync,
Rec: Sync,
impl<M, Rec> Unpin for NothingEventSimulator<M, Rec> where
M: Unpin,
Rec: Unpin,
M: Unpin,
Rec: Unpin,
impl<M, Rec> UnwindSafe for NothingEventSimulator<M, Rec> where
M: UnwindSafe,
Rec: UnwindSafe,
M: UnwindSafe,
Rec: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,