Module std::at_vec

Managed vectors

Modules

raw
traits

Functions

append

Iterates over the rhs vector, copying each element and appending it to the lhs. Afterwards, the lhs is then returned for use again.

build

Builds a vector by calling a provided function with an argument function that pushes an element to the back of a vector. The initial size for the vector may optionally be specified

capacity

Code for dealing with @-vectors. This is pretty incomplete, and contains a bunch of duplication from the code for ~-vectors. Returns the number of elements the vector can hold without reallocating

from_elem

Creates and initializes an immutable vector.

from_fn

Creates and initializes an immutable vector.

map

Apply a function to each element of a vector and return the results

to_managed

Creates and initializes an immutable managed vector by copying all the elements of a slice.

to_managed_move

Creates and initializes an immutable managed vector by moving all the elements from an owned vector.