pub struct ArrayStorage<T, const N: usize> { /* private fields */ }
Expand description
Storage for ring buffers in a fixed-size array.
The underlying data is stored inline in this structure, and it has a fixed (non-zero) size that must be selected at compile-time.
Implementations§
Source§impl<T, const N: usize> ArrayStorage<T, N>
impl<T, const N: usize> ArrayStorage<T, N>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ArrayStorage
.
Trait Implementations§
Source§impl<T, const N: usize> Clone for ArrayStorage<T, N>
impl<T, const N: usize> Clone for ArrayStorage<T, N>
Source§impl<T, const N: usize> Debug for ArrayStorage<T, N>
impl<T, const N: usize> Debug for ArrayStorage<T, N>
Source§impl<T, const N: usize> Storage for ArrayStorage<T, N>
impl<T, const N: usize> Storage for ArrayStorage<T, N>
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for ArrayStorage<T, N>
impl<T, const N: usize> !RefUnwindSafe for ArrayStorage<T, N>
impl<T, const N: usize> Send for ArrayStorage<T, N>where
T: Send,
impl<T, const N: usize> Sync for ArrayStorage<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for ArrayStorage<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for ArrayStorage<T, N>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