Trait TaggableContainer

Source
pub trait TaggableContainer {
    type Inner;

    // Required method
    fn into_inner(self) -> Self::Inner;
}
Expand description

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.

Required Associated Types§

Source

type Inner

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

Required Methods§

Source

fn into_inner(self) -> Self::Inner

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

Implementors§