Struct supercow::ext::BoxedStorage [] [src]

pub struct BoxedStorage;

Causes the OWNED or SHARED value of a Supercow to be stored in a Box.

This makes allocation of owned Supercows more expensive, but incurs zero space overhead within the Supercow. It also results in a faster Deref implementation.

Trait Implementations

impl Debug for BoxedStorage
[src]

Formats the value using the given formatter.

impl Clone for BoxedStorage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for BoxedStorage
[src]

impl Default for BoxedStorage
[src]

Returns the "default value" for a type. Read more

impl<A, B> OwnedStorage<A, B> for BoxedStorage
[src]

Allocates the given owned value. Read more

See allocate_a.

Extracts the immutable reference from the saved pointer and storage. Read more

See get_ptr_a.

Extracts the mutable reference from the saved pointer and storage. Read more

See get_mut_a.

Releases any allocations that would not be released by Stored being dropped. Read more

See deallocate_b.

Like deallocate_a(), but also return the owned value.

See deallocate_into_a.

Returns whether this storage implementation ever causes the owned object to be stored internally to the Supercow. Read more