pub trait Subsets<T>: Default {
// Required methods
fn set_limit(&mut self, m: &T);
fn inc_limit(&mut self);
fn clear(&mut self);
fn done(&mut self, n: usize);
fn reset(&mut self, n: usize);
fn add(&mut self, idx: usize, v: &T);
fn remove(&mut self, idx: usize, v: &T);
}Expand description
Trait used by SetPartition structs to notify the subsets structure of changes.
A no-op implementation is available for ().
The VecSubsets, HashSubsets, BTreeSubsets structs implement this
trait to provide an updated view of the subsets in the partition, represented
with Vec, HashSet or BTreeSet types respectively.
Required Methods§
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.