Enum maybe_box::Unpacked [] [src]

pub enum Unpacked<T> {
    Inline(T),
    Boxed(Box<T>),
}

An unpacked MaybeBox<T>. Produced by MaybeBox::unpack.

Variants

A T stored inline.

A T stored in a Box.

Trait Implementations

impl<T: Debug> Debug for Unpacked<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Unpacked<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Unpacked<T>
[src]

impl<T: Hash> Hash for Unpacked<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more