pub struct Extensions { /* private fields */ }Implementations§
Source§impl Extensions
impl Extensions
pub fn new() -> Extensions
pub fn insert<T>(&mut self, value: T) -> Option<T>where
T: 'static,
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 remove<T>(&mut self) -> Option<T>where
T: 'static,
pub fn contains<T>(&self) -> boolwhere
T: 'static,
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn clear(&mut self)
Trait Implementations§
Source§impl Default for Extensions
impl Default for Extensions
Source§fn default() -> Extensions
fn default() -> Extensions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Extensions
impl !Send for Extensions
impl !Sync for Extensions
impl !UnwindSafe for Extensions
impl Freeze 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