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
@ == 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 == @.contains_key(@),
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) => @.contains_key(@) && *v == @[@],
None => !@.contains_key(@),
},
sourcepub exec fn union_prefer_right(&mut self, other: Self)
pub exec fn union_prefer_right(&mut self, other: Self)
ensures
@ == @.union_prefer_right(@),
Trait Implementations§
Auto Trait Implementations§
impl<Value> Freeze for StringHashMap<Value>
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