pub struct Set<V: DafnyTypeEq> { /* private fields */ }Implementations§
Source§impl<V: DafnyTypeEq> Set<V>
impl<V: DafnyTypeEq> Set<V>
pub fn new_empty() -> Set<V>
pub fn from_array(array: &Vec<V>) -> Set<V>
pub fn from_iterator<I>(data: I) -> Set<V>where
I: Iterator<Item = V>,
pub fn from_sequence(data: &Rc<Sequence<V>>) -> Set<V>
pub fn from_hashset_owned(hashset: HashSet<V>) -> Set<V>
pub fn cardinality_usize(&self) -> usize
pub fn cardinality(&self) -> DafnyInt
pub fn contains(&self, value: &V) -> bool
pub fn merge(&self, other: &Set<V>) -> Set<V>
pub fn intersect(&self, other: &Set<V>) -> Set<V>
pub fn subtract(&self, other: &Set<V>) -> Set<V>
pub fn disjoint(&self, other: &Set<V>) -> bool
pub fn equals(&self, other: &Set<V>) -> bool
pub fn elements(&self) -> Set<V>
pub fn as_dafny_multiset(&self) -> Multiset<V>
pub fn iter(&self) -> Iter<'_, V>
pub fn peek(&self) -> V
Trait Implementations§
Source§impl<V: DafnyTypeEq> DafnyPrint for Set<V>
impl<V: DafnyTypeEq> DafnyPrint for Set<V>
Source§impl<V> Debug for Set<V>where
V: DafnyTypeEq,
impl<V> Debug for Set<V>where
V: DafnyTypeEq,
Source§impl<T> Default for Set<T>where
T: DafnyTypeEq,
impl<T> Default for Set<T>where
T: DafnyTypeEq,
Source§impl<T: DafnyTypeEq> Hash for Set<T>
impl<T: DafnyTypeEq> Hash for Set<T>
Source§impl<T: DafnyTypeEq> NontrivialDefault for Set<T>
impl<T: DafnyTypeEq> NontrivialDefault for Set<T>
fn nontrivial_default() -> Self
Source§impl<V> PartialEq for Set<V>where
V: DafnyTypeEq,
impl<V> PartialEq for Set<V>where
V: DafnyTypeEq,
Source§impl<T: DafnyTypeEq> PartialOrd for Set<T>
impl<T: DafnyTypeEq> PartialOrd for Set<T>
impl<T: DafnyTypeEq> Eq for Set<T>
Auto Trait Implementations§
impl<V> Freeze for Set<V>
impl<V> RefUnwindSafe for Set<V>where
V: RefUnwindSafe,
impl<V> !Send for Set<V>
impl<V> !Sync for Set<V>
impl<V> Unpin for Set<V>
impl<V> UnwindSafe for Set<V>where
V: RefUnwindSafe,
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