pub trait MutSetOps<T> {
fn munordered(&mut self);
fn mordered(&mut self, asc: bool)
where
F64: From<T>;
fn mindexed(&mut self, asc: bool)
where
F64: From<T>;
fn mranked(&mut self, asc: bool);
fn msame(&mut self, s: &mut Self)
where
F64: From<T>;
fn mdelete(&mut self, item: T) -> bool;
fn minsert(&mut self, item: T);
fn mreverse(&mut self);
fn mnonrepeat(&mut self);
fn munion(&mut self, s: &Self);
fn mintersection(&mut self, s: &Self);
fn mdifference(&mut self, s: &Self);
}
Expand description
Mutable methods for &mut Set
Required Methods
fn munordered(&mut self)
fn munordered(&mut self)
Makes a Set unordered
General converter: s -> Set of the same type and order as self
fn mnonrepeat(&mut self)
fn mnonrepeat(&mut self)
Deletes any repetitions
fn mintersection(&mut self, s: &Self)
fn mintersection(&mut self, s: &Self)
Intersection of two sets of the same type
fn mdifference(&mut self, s: &Self)
fn mdifference(&mut self, s: &Self)
Removing s from self (i.e. self-s)