pub trait MutSetOps<T> {
Show 13 methods
fn munordered(&mut self);
fn mordered(&mut self, quantify: &mut impl FnMut(&T) -> f64, asc: bool);
fn mindexed(&mut self, quantify: &mut impl FnMut(&T) -> f64, asc: bool);
fn mranked(&mut self, asc: bool);
fn msame(&mut self, s: &mut Self, quantify: &mut impl FnMut(&T) -> f64);
fn mdelete(&mut self, item: T) -> bool;
fn mdeleteall(&mut self, item: T) -> usize;
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
sourcefn munordered(&mut self)
fn munordered(&mut self)
Makes a Set unordered
sourcefn msame(&mut self, s: &mut Self, quantify: &mut impl FnMut(&T) -> f64)
fn msame(&mut self, s: &mut Self, quantify: &mut impl FnMut(&T) -> f64)
General converter: s -> Set of the same type and order as self
sourcefn mdeleteall(&mut self, item: T) -> usize
fn mdeleteall(&mut self, item: T) -> usize
Deletes all occurrences of a matching item from self, returns their count
sourcefn mnonrepeat(&mut self)
fn mnonrepeat(&mut self)
Deletes all repetitions
sourcefn mintersection(&mut self, s: &Self)
fn mintersection(&mut self, s: &Self)
Intersection of two sets of the same type
sourcefn mdifference(&mut self, s: &Self)
fn mdifference(&mut self, s: &Self)
Removing s from self (i.e. self-s)