pub struct Extensions { /* private fields */ }Implementations§
Source§impl Extensions
impl Extensions
pub fn new() -> Self
pub fn insert<T: 'static>(&mut self, val: T) -> Option<T>
pub fn get<T: 'static>(&self) -> Option<&T>
pub fn get_mut<T: 'static>(&mut self) -> Option<&mut T>
pub fn get_required<T: 'static>(&self) -> Result<&T, Error>
pub fn get_mut_required<T: 'static>(&mut self) -> Result<&mut T, Error>
pub fn remove<T: 'static>(&mut self) -> Option<T>
pub fn contains<T: 'static>(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Source§impl Clone for Extensions
impl Clone for Extensions
Source§impl Debug for Extensions
impl Debug for Extensions
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