Struct stackalloc::avec::AVec
source · [−]pub struct AVec<'a, T> { /* private fields */ }
Expand description
A growable vector with a backing slice that will move its elements to the heap if the slice space is exhausted.
Implementations
sourceimpl<'a, T> AVec<'a, T>
impl<'a, T> AVec<'a, T>
sourcepub fn is_allocated(&self) -> bool
pub fn is_allocated(&self) -> bool
Have the elements been moved to the heap?
sourcepub fn new(stack: &'a mut [MaybeUninit<T>]) -> Self
pub fn new(stack: &'a mut [MaybeUninit<T>]) -> Self
Create a new AVec
with this backing buffer.
Trait Implementations
impl<'a, T> Send for AVec<'a, T>
impl<'a, T> Sync for AVec<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for AVec<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Unpin for AVec<'a, T> where
T: Unpin,
impl<'a, T> !UnwindSafe for AVec<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more