pub struct KeyedVec<Key, Value> { /* private fields */ }Expand description
! Contains containers which are used by the solver.
Structure for storing elements of type Value, the structure can only be indexed by structures
of type Key.
Almost all features of this structure require that Key implements the StorageKey trait.
Implementations§
Trait Implementations§
source§impl<Key: StorageKey, Value> Index<Key> for KeyedVec<Key, Value>
impl<Key: StorageKey, Value> Index<Key> for KeyedVec<Key, Value>
source§impl<Key: StorageKey, Value> IndexMut<Key> for KeyedVec<Key, Value>
impl<Key: StorageKey, Value> IndexMut<Key> for KeyedVec<Key, Value>
impl<Key: Eq, Value: Eq> Eq for KeyedVec<Key, Value>
impl<Key, Value> StructuralPartialEq for KeyedVec<Key, Value>
Auto Trait Implementations§
impl<Key, Value> Freeze for KeyedVec<Key, Value>
impl<Key, Value> RefUnwindSafe for KeyedVec<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for KeyedVec<Key, Value>
impl<Key, Value> Sync for KeyedVec<Key, Value>
impl<Key, Value> Unpin for KeyedVec<Key, Value>
impl<Key, Value> UnwindSafe for KeyedVec<Key, Value>where
Key: UnwindSafe,
Value: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more