Trait network_collections::UnifiedArrayVecAndVec[][src]

pub trait UnifiedArrayVecAndVec<T> {
    fn maximum_capacity(&self) -> usize;
fn length(&self) -> usize;
fn mutable_pointer_at_length(&mut self, length: usize) -> *mut T;
fn set_length(&mut self, length: usize); fn truncate_without_drop(&mut self) { ... } }

A trait to unify ArrayVec and Vec.

Required Methods

Obtain maximum capacity.

Obtain length.

Should return a pointer to just after the last element.

Set length.

Provided Methods

Truncates without dropping any members (sets length to zero).

Implementations on Foreign Types

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

Implementors