Struct vstd::hash_set::StringHashSet
source · pub struct StringHashSet { /* private fields */ }
Implementations§
source§impl StringHashSet
impl StringHashSet
sourcepub exec fn with_capacity(capacity: usize) -> result : Self
pub exec fn with_capacity(capacity: usize) -> result : Self
ensures
result@ == Set::<Seq<char>>::empty(),
sourcepub exec fn insert(&mut self, k: String) -> result : bool
pub exec fn insert(&mut self, k: String) -> result : bool
ensures
self@ == old(self)@.insert(k@) && result == !old(self)@.contains(k@),
sourcepub exec fn remove(&mut self, k: &str) -> result : bool
pub exec fn remove(&mut self, k: &str) -> result : bool
ensures
self@ == old(self)@.remove(k@) && result == old(self)@.contains(k@),
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for StringHashSet
impl Send for StringHashSet
impl Sync for StringHashSet
impl Unpin for StringHashSet
impl UnwindSafe for StringHashSet
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