Trait try_as_traits::TypedContainer
source · 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
sourcefn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Returns the std::any::TypeId
of the contained value.