[][src]Trait copyless::VecHelper

pub trait VecHelper<T> {
    fn alloc(&mut self) -> VecAllocation<T>;
fn entry(&mut self, index: usize) -> VecEntry<T>; }

Helper trait for a Vec type that allocates up-front.

Required methods

fn alloc(&mut self) -> VecAllocation<T>

Grows the vector by a single entry, returning the allocation.

fn entry(&mut self, index: usize) -> VecEntry<T>

Either returns an existing element, or grows the vector by one. Doesn't expect indices to be higher than the current length.

Loading content...

Implementations on Foreign Types

impl<T> VecHelper<T> for Vec<T>[src]

Loading content...

Implementors

Loading content...