Struct containers::collections::RawVec [] [src]

pub struct RawVec<T, A: Alloc = NullAllocator> { /* fields omitted */ }

Raw growable array

Methods

impl<T, A: Alloc> RawVec<T, A>
[src]

[src]

Make a new array.

[src]

Make a new array with enough room to hold at least cap elements.

Failures

Returns None if allocation fails.

[src]

Return number of elements array can hold before reallocation.

[src]

[src]

[src]

[src]

Make sure the array has enough room for at least n_more more elements, assuming it already holds n, reallocating if need be.

Failures

Returns false if allocation fails, true otherwise.

[src]

Relinquish memory so capacity = n.

[src]

[src]

impl<T, A: Alloc + Default> RawVec<T, A>
[src]

[src]

Make a new array.

[src]

Trait Implementations

impl<T, A: Alloc> Drop for RawVec<T, A>
[src]

[src]

Executes the destructor for this type. Read more

impl<T, A: Alloc + Default> Default for RawVec<T, A>
[src]

[src]

Returns the "default value" for a type. Read more