pub struct IdsContainer<T> { /* private fields */ }Implementations§
Source§impl<T> IdsContainer<T>
impl<T> IdsContainer<T>
pub fn new() -> IdsContainer<T>
Sourcepub fn get<'a>(&'a self, id: &Id) -> Option<&'a T>
pub fn get<'a>(&'a self, id: &Id) -> Option<&'a T>
Returns an iterator for all the keys and values in the container.
Sourcepub fn get_mut<'a>(&'a mut self, id: &Id) -> Option<&'a mut T>
pub fn get_mut<'a>(&'a mut self, id: &Id) -> Option<&'a mut T>
Returns an iterator for all the keys and values in the container.
Sourcepub fn iter(&self) -> Iter<'_, T> ⓘ
pub fn iter(&self) -> Iter<'_, T> ⓘ
Returns an iterator for all the keys and values in the container.
Sourcepub fn iter_mut(&mut self) -> IterMut<'_, T> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_, T> ⓘ
Returns an iterator for all the keys and values in the container.
Auto Trait Implementations§
impl<T> Freeze for IdsContainer<T>
impl<T> RefUnwindSafe for IdsContainer<T>where
T: RefUnwindSafe,
impl<T> Send for IdsContainer<T>where
T: Send,
impl<T> Sync for IdsContainer<T>where
T: Sync,
impl<T> Unpin for IdsContainer<T>where
T: Unpin,
impl<T> UnwindSafe for IdsContainer<T>where
T: UnwindSafe,
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