pub struct ObservationWindow<'a> { /* private fields */ }Expand description
Allocation-free suffix view over a possibly wrapped observation deque.
Implementations§
Source§impl<'a> ObservationWindow<'a>
impl<'a> ObservationWindow<'a>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn latest(&self) -> Option<&'a StrategyObservation>
pub fn iter(&self) -> impl DoubleEndedIterator<Item = &'a StrategyObservation>
Trait Implementations§
Source§impl<'a> Clone for ObservationWindow<'a>
impl<'a> Clone for ObservationWindow<'a>
impl<'a> Copy for ObservationWindow<'a>
Auto Trait Implementations§
impl<'a> Freeze for ObservationWindow<'a>
impl<'a> RefUnwindSafe for ObservationWindow<'a>
impl<'a> Send for ObservationWindow<'a>
impl<'a> Sync for ObservationWindow<'a>
impl<'a> Unpin for ObservationWindow<'a>
impl<'a> UnsafeUnpin for ObservationWindow<'a>
impl<'a> UnwindSafe for ObservationWindow<'a>
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