pub struct InverseSupply<V>{ /* private fields */ }Implementations§
Source§impl<V> InverseSupply<V>
impl<V> InverseSupply<V>
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn get(&self, value: &V) -> Option<usize>
pub fn insert(&mut self, value: V, entity_idx: usize) -> Option<usize>
pub fn remove(&mut self, value: &V) -> Option<usize>
pub fn update(&mut self, old_value: Option<&V>, new_value: V, entity_idx: usize)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&V, &usize)>
Trait Implementations§
Source§impl<V> Debug for InverseSupply<V>
impl<V> Debug for InverseSupply<V>
Auto Trait Implementations§
impl<V> Freeze for InverseSupply<V>
impl<V> RefUnwindSafe for InverseSupply<V>where
V: RefUnwindSafe,
impl<V> Send for InverseSupply<V>where
V: Send,
impl<V> Sync for InverseSupply<V>where
V: Sync,
impl<V> Unpin for InverseSupply<V>where
V: Unpin,
impl<V> UnsafeUnpin for InverseSupply<V>
impl<V> UnwindSafe for InverseSupply<V>where
V: 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