Struct supercow::ext::InlineStorage [] [src]

pub struct InlineStorage<A, B>(_);

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

This makes allocation of owned Supercows much faster, at the expense of making the Supercow itself much bigger (since it now must contain the whole object).

Trait Implementations

impl<A: Clone, B: Clone> Clone for InlineStorage<A, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: Copy, B: Copy> Copy for InlineStorage<A, B>
[src]

impl<A: Debug, B: Debug> Debug for InlineStorage<A, B>
[src]

Formats the value using the given formatter.

impl<A, B> Default for InlineStorage<A, B>
[src]

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

impl<A, B> OwnedStorage<A, B> for InlineStorage<A, B>
[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