pub struct RingCursor { /* private fields */ }Expand description
Tracks position in a ring buffer with wrap-around handling.
The cursor maintains both an index into the ring and a wrap counter that toggles each time the index wraps around.
Implementations§
Trait Implementations§
Source§impl Clone for RingCursor
impl Clone for RingCursor
Source§fn clone(&self) -> RingCursor
fn clone(&self) -> RingCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RingCursor
Source§impl Debug for RingCursor
impl Debug for RingCursor
impl Eq for RingCursor
Source§impl PartialEq for RingCursor
impl PartialEq for RingCursor
Source§fn eq(&self, other: &RingCursor) -> bool
fn eq(&self, other: &RingCursor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RingCursor
Auto Trait Implementations§
impl Freeze for RingCursor
impl RefUnwindSafe for RingCursor
impl Send for RingCursor
impl Sync for RingCursor
impl Unpin for RingCursor
impl UnsafeUnpin for RingCursor
impl UnwindSafe for RingCursor
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