pub struct Extensions(/* private fields */);Methods from Deref<Target = TypeMap>§
pub fn insert<T>(&mut self, t: T)
pub fn get<T>(&self) -> Option<&T>where
T: 'static,
pub fn get_mut<T>(&mut self) -> Option<&mut T>where
T: 'static,
pub fn contains<T>(&self) -> boolwhere
T: 'static,
pub fn remove<T>(&mut self) -> Option<T>where
T: 'static,
pub fn clear(&mut self)
pub fn extend(&mut self, other: TypeMap)
pub fn iter(&self) -> Iter<'_, TypeId, Box<dyn Any + Send + Sync>> ⓘ
pub fn entry<T>(&mut self) -> Entry<'_, TypeId, T>where
T: 'static,
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Extensions
impl !UnwindSafe for Extensions
impl Freeze for Extensions
impl Send for Extensions
impl Sync for Extensions
impl Unpin for Extensions
impl UnsafeUnpin for Extensions
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