pub struct BTreeSubsets<T> where
    <T as TryInto<usize>>::Error: Debug,
    <T as TryFrom<usize>>::Error: Debug,
    T: Clone + TryInto<usize> + TryFrom<usize> + Ord
{ /* private fields */ }
Expand description

Maintains subsets of a set partition using BTreeSets

Pass this as the Subsets implementation to the SetPartition structs.

Implementations

Return the non-empty subsets part of the set partition

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Set the number of non-empty sets to m converted to usize

Increment the number of non-empty sets

Clear all sets, reset the number of non-empty sets to 0

Truncate the number of sets to at most n

Reset to the trivial partition of size n

Notify addition of idx to the set identified by v Read more

Notify removal of idx from the set identified by v Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.