Struct vstd::hash_map::StringHashMap
source · pub struct StringHashMap<Value> { /* private fields */ }
Implementations§
source§impl<Value> StringHashMap<Value>
impl<Value> StringHashMap<Value>
sourcepub exec fn with_capacity(capacity: usize) -> result : Self
pub exec fn with_capacity(capacity: usize) -> result : Self
ensures
result@ == Map::<Seq<char>, Value>::empty(),
sourcepub exec fn contains_key(&self, k: &str) -> result : bool
pub exec fn contains_key(&self, k: &str) -> result : bool
ensures
result == self@.contains_key(k@),
sourcepub exec fn get<'a>(&'a self, k: &str) -> result : Option<&'a Value>
pub exec fn get<'a>(&'a self, k: &str) -> result : Option<&'a Value>
ensures
match result {
Some(v) => self@.contains_key(k@) && *v == self@[k@],
None => !self@.contains_key(k@),
},
sourcepub exec fn union_prefer_right(&mut self, other: Self)
pub exec fn union_prefer_right(&mut self, other: Self)
ensures
self@ == old(self)@.union_prefer_right(other@),
Trait Implementations§
Auto Trait Implementations§
impl<Value> RefUnwindSafe for StringHashMap<Value>where
Value: RefUnwindSafe,
impl<Value> Send for StringHashMap<Value>where
Value: Send,
impl<Value> Sync for StringHashMap<Value>where
Value: Sync,
impl<Value> Unpin for StringHashMap<Value>where
Value: Unpin,
impl<Value> UnwindSafe for StringHashMap<Value>where
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