pub struct ReplayRecorder { /* private fields */ }Expand description
Replay recorder for capturing simulation state
Implementations§
Source§impl ReplayRecorder
impl ReplayRecorder
Sourcepub fn record_step_with_equations(
&mut self,
step: u64,
state: HashMap<String, Value>,
equations: Vec<EquationEvaluation>,
)
pub fn record_step_with_equations( &mut self, step: u64, state: HashMap<String, Value>, equations: Vec<EquationEvaluation>, )
Record step with equation evaluations
Sourcepub fn finalize(self) -> ReplayFile
pub fn finalize(self) -> ReplayFile
Finalize and create replay file
Sourcepub fn step_count(&self) -> usize
pub fn step_count(&self) -> usize
Get number of recorded steps
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReplayRecorder
impl RefUnwindSafe for ReplayRecorder
impl Send for ReplayRecorder
impl Sync for ReplayRecorder
impl Unpin for ReplayRecorder
impl UnsafeUnpin for ReplayRecorder
impl UnwindSafe for ReplayRecorder
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