pub struct ExternalizedSingletonInverseVariableSupply<V, E>{ /* private fields */ }Expand description
Hash-based implementation of inverse variable supply.
Uses a HashMap internally for O(1) average-case lookups.
Thread-safe via RwLock.
Implementations§
Source§impl<V, E> ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> ExternalizedSingletonInverseVariableSupply<V, E>
Trait Implementations§
Source§impl<V, E> Debug for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> Debug for ExternalizedSingletonInverseVariableSupply<V, E>
Source§impl<V, E> SingletonInverseVariableSupply<V, E> for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> SingletonInverseVariableSupply<V, E> for ExternalizedSingletonInverseVariableSupply<V, E>
Source§fn get_inverse_singleton(&self, value: &V) -> Option<E>
fn get_inverse_singleton(&self, value: &V) -> Option<E>
Gets the entity that points to the given value, if any. Read more
Source§fn insert(&self, value: V, entity: E)
fn insert(&self, value: V, entity: E)
Registers that an entity now points to a value. Read more
Auto Trait Implementations§
impl<V, E> !Freeze for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> RefUnwindSafe for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> Send for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> Sync for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> Unpin for ExternalizedSingletonInverseVariableSupply<V, E>
impl<V, E> UnwindSafe for ExternalizedSingletonInverseVariableSupply<V, E>
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