Skip to main content

Signature

Trait functions

new

Creates a new Box with the given value. Allocates space in the boxed segment for the provided value and returns a Box that points to it.

Signature

Examples

unbox

Unboxes the given Box and returns the wrapped value.

Signature

Examples

as_snapshot

Converts the given snapshot of a Box into a Box of a snapshot. Useful for structures that aren’t copyable.

Signature

Examples