pub struct Expando { /* private fields */ }
Expand description
A lazy collection of values of every type.
An Expando contains a single instance of every type. The values are instantiated lazily when accessed. Useful for letting modules add their own state to context objects without requiring the context object itself to know about the types in every module.
Typically the type a module uses in the Expando will be private to that module, which lets the module know that no other code is accessing its slot on the expando.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Expando
impl !RefUnwindSafe for Expando
impl Send for Expando
impl Sync for Expando
impl Unpin for Expando
impl !UnwindSafe for Expando
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