Struct vstd::hash_map::HashMapWithView
source · pub struct HashMapWithView<Key, Value>{ /* private fields */ }
Implementations§
source§impl<Key, Value> HashMapWithView<Key, Value>
impl<Key, Value> HashMapWithView<Key, Value>
sourcepub exec fn new() -> Self
pub exec fn new() -> Self
requires
obeys_key_model::<Key>(),
forall |k1: Key, k2: Key| k1@ == k2@ ==> k1 == k2,
ensuresresult@ == Map::<<Key as View>::V, Value>::empty(),
sourcepub exec fn with_capacity(capacity: usize) -> Self
pub exec fn with_capacity(capacity: usize) -> Self
requires
obeys_key_model::<Key>(),
forall |k1: Key, k2: Key| k1@ == k2@ ==> k1 == k2,
ensuresresult@ == Map::<<Key as View>::V, Value>::empty(),
sourcepub exec fn contains_key(&self, k: &Key) -> bool
pub exec fn contains_key(&self, k: &Key) -> bool
ensures
result == self@.contains_key(k@),
Trait Implementations§
Auto Trait Implementations§
impl<Key, Value> RefUnwindSafe for HashMapWithView<Key, Value>where
Key: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Key, Value> Send for HashMapWithView<Key, Value>
impl<Key, Value> Sync for HashMapWithView<Key, Value>
impl<Key, Value> Unpin for HashMapWithView<Key, Value>
impl<Key, Value> UnwindSafe for HashMapWithView<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