pub trait MutSetOps<T> {
Show 13 methods
// Required methods
fn munordered(&mut self);
fn mordered(&mut self, quantify: impl Copy + Fn(&T) -> f64, asc: bool);
fn mindexed(&mut self, quantify: impl Copy + Fn(&T) -> f64, asc: bool);
fn mranked(&mut self, asc: bool);
fn msame(&mut self, s: &mut Self, quantify: impl Copy + Fn(&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: impl Copy + Fn(&T) -> f64)
fn msame(&mut self, s: &mut Self, quantify: impl Copy + Fn(&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)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.