Trait MetaAny
Source pub unsafe trait MetaAny {
// Required methods
fn as_erased(&self) -> ErasedInner<'_>;
fn as_erased_mut(&mut self) -> ErasedInnerMut<'_>;
fn as_erased_ptr(&self) -> ErasedInnerPtr<'_>;
}
Expand description
A dyn compatible alternative to Any that can contain multiple items.
§Safety
This trait cannot return overlapping references for different types.
For example
The implementation can return A, or (B, C) but not both.
Obtain an item if it exists in the MetaAny.
Always returns Some for ().
Obtain an item if it exists in the MetaAny.
Always returns Some for ().
Obtain an item if it exists in the MetaAny.
Always returns Some for ().