pub trait TypedContainer {
    fn type_id(&self) -> TypeId;

    fn holds<T: 'static>(&self) -> bool { ... }
}
Expand description

A trait for types that can hold values of different types.

Required Methods

Returns the std::any::TypeId of the contained value.

Provided Methods

Returns true excactly if the type of the contained vlaue is T.

Implementors