Struct comlib_math::subsets::Subset [−][src]
pub struct Subset {
pub mask: u64,
}Fields
mask: u64Bit mask encoding the subset.
The lowest bit encodes item 0, the second lowest bit encodes item 1 etc.
Implementations
pub fn select<I: IntoIterator>(self, iter: I) -> SubsetIter<I::IntoIter>ⓘNotable traits for SubsetIter<I>impl<I: Iterator> Iterator for SubsetIter<I> type Item = I::Item;
pub fn select<I: IntoIterator>(self, iter: I) -> SubsetIter<I::IntoIter>ⓘNotable traits for SubsetIter<I>impl<I: Iterator> Iterator for SubsetIter<I> type Item = I::Item;
Notable traits for SubsetIter<I>
impl<I: Iterator> Iterator for SubsetIter<I> type Item = I::Item;Selects the elements belonging to the subset from the given iterator.
This is especially useful when iterating over all subsets of a list.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Subset
impl UnwindSafe for Subset
Blanket Implementations
Mutably borrows from an owned value. Read more