pub struct SimulationDebugger {
pub id: Uuid,
/* private fields */
}Expand description
Debugger for simulations.
Fields§
§id: UuidDebugger identifier.
Implementations§
Source§impl SimulationDebugger
impl SimulationDebugger
Sourcepub fn add_breakpoint(&self, breakpoint: Breakpoint) -> Uuid
pub fn add_breakpoint(&self, breakpoint: Breakpoint) -> Uuid
Adds a breakpoint.
Sourcepub fn remove_breakpoint(&self, id: &Uuid) -> bool
pub fn remove_breakpoint(&self, id: &Uuid) -> bool
Removes a breakpoint.
Sourcepub fn enable_breakpoint(&self, id: &Uuid)
pub fn enable_breakpoint(&self, id: &Uuid)
Enables a breakpoint.
Sourcepub fn disable_breakpoint(&self, id: &Uuid)
pub fn disable_breakpoint(&self, id: &Uuid)
Disables a breakpoint.
Sourcepub fn check_breakpoints(
&self,
step: usize,
metrics: &SimulationMetrics,
) -> Option<Uuid>
pub fn check_breakpoints( &self, step: usize, metrics: &SimulationMetrics, ) -> Option<Uuid>
Checks if any breakpoint should trigger.
Sourcepub fn get_breakpoints(&self) -> Vec<Breakpoint>
pub fn get_breakpoints(&self) -> Vec<Breakpoint>
Gets all breakpoints.
Sourcepub fn get_hits(&self) -> Vec<BreakpointHit>
pub fn get_hits(&self) -> Vec<BreakpointHit>
Gets breakpoint hit history.
Sourcepub fn clear_hits(&self)
pub fn clear_hits(&self)
Clears hit history.
Trait Implementations§
Source§impl Clone for SimulationDebugger
impl Clone for SimulationDebugger
Source§fn clone(&self) -> SimulationDebugger
fn clone(&self) -> SimulationDebugger
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 Debug for SimulationDebugger
impl Debug for SimulationDebugger
Auto Trait Implementations§
impl Freeze for SimulationDebugger
impl RefUnwindSafe for SimulationDebugger
impl Send for SimulationDebugger
impl Sync for SimulationDebugger
impl Unpin for SimulationDebugger
impl UnwindSafe for SimulationDebugger
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