pub struct History<T> { /* private fields */ }Implementations§
Source§impl<T> History<T>
impl<T> History<T>
pub fn new(capacity: usize) -> History<T>
pub fn push(&mut self, tick: u64, state: T) -> bool
Sourcepub fn bracket(&self, tick: f64) -> Option<(&T, &T, f32)>
pub fn bracket(&self, tick: f64) -> Option<(&T, &T, f32)>
No extrapolation outside retained history: old/untrusted shot times are rejected.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for History<T>
impl<T> RefUnwindSafe for History<T>where
T: RefUnwindSafe,
impl<T> Send for History<T>where
T: Send,
impl<T> Sync for History<T>where
T: Sync,
impl<T> Unpin for History<T>where
T: Unpin,
impl<T> UnwindSafe for History<T>where
T: UnwindSafe,
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