pub struct RingBuffer<T> { /* private fields */ }Implementations§
Source§impl<T: Copy + Default> RingBuffer<T>
impl<T: Copy + Default> RingBuffer<T>
Sourcepub fn push(&mut self, item: T)
pub fn push(&mut self, item: T)
Menulis satu elemen ke posisi write saat ini dan memajukan pointer
Trait Implementations§
Source§impl<T: Clone> Clone for RingBuffer<T>
impl<T: Clone> Clone for RingBuffer<T>
Auto Trait Implementations§
impl<T> Freeze for RingBuffer<T>
impl<T> RefUnwindSafe for RingBuffer<T>where
Vec<T>: RefUnwindSafe,
impl<T> Send for RingBuffer<T>
impl<T> Sync for RingBuffer<T>
impl<T> Unpin for RingBuffer<T>
impl<T> UnsafeUnpin for RingBuffer<T>where
Vec<T>: UnsafeUnpin,
impl<T> UnwindSafe for RingBuffer<T>where
Vec<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