pub struct Shared<T: ?Sized + Send + Sync + 'static> { /* private fields */ }Expand description
Sized wrapper that lets the service and contribution registries store an Arc<dyn Trait>
without introducing a global service locator or stringly typed key.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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