pub struct UniqueIdCollection<T> { /* private fields */ }Implementations§
Source§impl<T> UniqueIdCollection<T>
impl<T> UniqueIdCollection<T>
pub fn new() -> Self
pub fn add_item(&mut self, item: T) -> u8
pub fn get_item(&self, id: u8) -> Option<&T>
pub fn get_item_mut(&mut self, id: u8) -> Option<&mut T>
pub fn remove_item(&mut self, id: u8) -> Option<T>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UniqueIdCollection<T>
impl<T> RefUnwindSafe for UniqueIdCollection<T>where
T: RefUnwindSafe,
impl<T> Send for UniqueIdCollection<T>where
T: Send,
impl<T> Sync for UniqueIdCollection<T>where
T: Sync,
impl<T> Unpin for UniqueIdCollection<T>where
T: Unpin,
impl<T> UnwindSafe for UniqueIdCollection<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