[][src]Trait tagged_box::TaggableContainer

pub trait TaggableContainer {
    type Inner;
    fn into_inner(self) -> Self::Inner;
}

A helper trait for containers that hold a TaggedBox associated with a specific enum.

Using this directly is not recommended, as tagged_box! should be used instead.
If you want to implement this yourself, see manually implementing a tagged enum.

Associated Types

type Inner

The type of the enum that the container can be safely made into

Loading content...

Required methods

fn into_inner(self) -> Self::Inner

Takes an instance of a TaggableContainer and converts it into the enum variant stored within

Loading content...

Implementors

Loading content...