[][src]Module rcodec::byte_vector

Structs

ByteVector

An immutable vector of bytes.

Functions

append

Returns a byte vector that contains the contents of lhs followed by the contents of rhs.

empty

Returns an empty byte vector.

file

Returns a byte vector whose contents come from a file.

fill

Returns a byte vector containing value repeated count times.

from_slice

Returns a byte vector that consumes the given slice, used to store primitive values directly.

from_slice_copy

Returns a byte vector that stores a copy of the given bytes on the heap.

from_vec

Returns a byte vector that consumes the contents of the given Vec<u8>.