Module std::vec::raw

Unsafe operations

Functions

buf_as_slice

Form a slice from a pointer and length (as a number of units, not bytes).

copy_memory

Copies data from one vector to another.

from_buf_raw

Constructs a vector from an unsafe pointer to a buffer

get

Unchecked vector indexing.

init_elem

Unchecked vector index assignment. Does not drop the old value and hence is only suitable when the vector is newly allocated.

mut_buf_as_slice

Form a slice from a pointer and length (as a number of units, not bytes).

set_len

Sets the length of a vector

to_mut_ptr

see to_ptr()

to_ptr

Returns an unsafe pointer to the vector's buffer