pub struct RingVec<T: Debug> { /* private fields */ }Implementations§
Source§impl<T: Debug> RingVec<T>
impl<T: Debug> RingVec<T>
Sourcepub fn new_preallocated(capacity: usize) -> RingVec<T>
pub fn new_preallocated(capacity: usize) -> RingVec<T>
Creates an empty RingVec with preallocated storage
Sourcepub fn shrink_to_fit(&mut self)
pub fn shrink_to_fit(&mut self)
Attempts to reduce memory usage.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RingVec<T>
impl<T> RefUnwindSafe for RingVec<T>where
T: RefUnwindSafe,
impl<T> Send for RingVec<T>where
T: Send,
impl<T> Sync for RingVec<T>where
T: Sync,
impl<T> Unpin for RingVec<T>where
T: Unpin,
impl<T> UnwindSafe for RingVec<T>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