pub struct BrickHistory { /* private fields */ }Expand description
History for time-travel debugging
Implementations§
Source§impl BrickHistory
impl BrickHistory
Sourcepub fn record(&mut self, state: BrickState, trace: ExecutionTrace)
pub fn record(&mut self, state: BrickState, trace: ExecutionTrace)
Record a state snapshot
Sourcepub fn step_back(&mut self) -> Option<&BrickState>
pub fn step_back(&mut self) -> Option<&BrickState>
Step backward to previous state
Sourcepub fn step_forward(&mut self) -> Option<&BrickState>
pub fn step_forward(&mut self) -> Option<&BrickState>
Step forward to next state
Sourcepub fn goto(&mut self, position: usize) -> Option<&BrickState>
pub fn goto(&mut self, position: usize) -> Option<&BrickState>
Jump to specific position
Sourcepub fn current(&self) -> Option<&BrickState>
pub fn current(&self) -> Option<&BrickState>
Get current state
Sourcepub fn trace_at(&self, position: usize) -> Option<&ExecutionTrace>
pub fn trace_at(&self, position: usize) -> Option<&ExecutionTrace>
Get trace at position
Sourcepub fn traces(&self) -> &[ExecutionTrace]
pub fn traces(&self) -> &[ExecutionTrace]
Get all traces
Trait Implementations§
Source§impl Debug for BrickHistory
impl Debug for BrickHistory
Auto Trait Implementations§
impl Freeze for BrickHistory
impl RefUnwindSafe for BrickHistory
impl Send for BrickHistory
impl Sync for BrickHistory
impl Unpin for BrickHistory
impl UnsafeUnpin for BrickHistory
impl UnwindSafe for BrickHistory
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().