pub trait VecHelper<T> {
// Required methods
fn alloc(&mut self) -> VecAllocation<'_, T>;
fn entry(&mut self, index: usize) -> VecEntry<'_, T>;
}Expand description
Helper trait for a Vec type that allocates up-front.
Required Methods§
Sourcefn alloc(&mut self) -> VecAllocation<'_, T>
fn alloc(&mut self) -> VecAllocation<'_, T>
Grows the vector by a single entry, returning the allocation.