Box

Box: Box, ~Box, get

struct Box<T>

Owns a heap-allocated value.

Box

Box(T value)

Moves the given value onto the heap.

~Box

~Box()

Frees the owned value.

get

T* get()

Returns a pointer to the owned value.