pub struct TimeTravel { /* private fields */ }Implementations§
Source§impl TimeTravel
impl TimeTravel
pub fn new() -> Self
pub fn record(&mut self, time: f64, snapshot: PackedSnapshot)
pub fn seek_to_time(&mut self, target_time: f64) -> Option<&PackedSnapshot>
pub fn get_snapshot_at_time(&self, time: f64) -> Option<&PackedSnapshot>
pub fn get_current_snapshot(&self) -> Option<&PackedSnapshot>
pub fn get_earliest_time(&self) -> Option<f64>
pub fn get_latest_time(&self) -> Option<f64>
pub fn get_current_time(&self) -> f64
pub fn fork_at_time(&self, time: f64) -> Option<PackedSnapshot>
pub fn prune_before(&mut self, time: f64)
pub fn prune_after(&mut self, time: f64)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeTravel
impl RefUnwindSafe for TimeTravel
impl Send for TimeTravel
impl Sync for TimeTravel
impl Unpin for TimeTravel
impl UnwindSafe for TimeTravel
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