pub struct AnyMap(/* private fields */);Expand description
A type-erased map keyed by TypeId.
Each concrete type can appear at most once (like a typed slot).
Used by PacketContext::tags for inter-stage communication and by
StrategyContext::extensions for cross-layer enrichment data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnyMap
impl !RefUnwindSafe for AnyMap
impl Send for AnyMap
impl Sync for AnyMap
impl Unpin for AnyMap
impl !UnwindSafe for AnyMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more