pub struct RingBufferIndex { /* private fields */ }Expand description
A direct index into the buffer.
Implementations§
Source§impl RingBufferIndex
impl RingBufferIndex
Sourcepub fn eq<T>(self, buffer: &RingBuffer<T>, other: Self) -> bool
pub fn eq<T>(self, buffer: &RingBuffer<T>, other: Self) -> bool
Uses the buffer to resolve any aliasing that can occur because of a growing buffer and wrap- around.
Trait Implementations§
Source§impl Clone for RingBufferIndex
impl Clone for RingBufferIndex
Source§fn clone(&self) -> RingBufferIndex
fn clone(&self) -> RingBufferIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RingBufferIndex
impl Debug for RingBufferIndex
Source§impl<T> Index<RingBufferIndex> for RingBuffer<T>
impl<T> Index<RingBufferIndex> for RingBuffer<T>
Source§impl<T> IndexMut<RingBufferIndex> for RingBuffer<T>
impl<T> IndexMut<RingBufferIndex> for RingBuffer<T>
impl Copy for RingBufferIndex
Auto Trait Implementations§
impl Freeze for RingBufferIndex
impl RefUnwindSafe for RingBufferIndex
impl Send for RingBufferIndex
impl Sync for RingBufferIndex
impl Unpin for RingBufferIndex
impl UnwindSafe for RingBufferIndex
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