pub struct MultiIntersection<S>where
S: SkippingSearch,{ /* private fields */ }
Expand description
Combines an arbitrary number of SkippingSearch
objects, and returns only the items present in all of them.
Implementations§
Source§impl<S> MultiIntersection<S>where
S: SkippingSearch,
impl<S> MultiIntersection<S>where
S: SkippingSearch,
Trait Implementations§
Source§impl<S> SkippingSearch for MultiIntersection<S>where
S: SkippingSearch,
impl<S> SkippingSearch for MultiIntersection<S>where
S: SkippingSearch,
type Item = <S as SkippingSearch>::Item
Source§fn suggest_next(&self) -> Option<Self::Item>
fn suggest_next(&self) -> Option<Self::Item>
Returns the smallest value for which
find_and_advance
may return true.
For efficiency reasons, making sure the value
is one for which find_and_advance
will
return true is preferred, when possible.Source§fn find_and_advance(&mut self, item: &Self::Item) -> bool
fn find_and_advance(&mut self, item: &Self::Item) -> bool
Returns whether this contains the passed-in value.
Also mutates the receiver to forget about any values
smaller than or equal to the item.
Auto Trait Implementations§
impl<S> Freeze for MultiIntersection<S>
impl<S> RefUnwindSafe for MultiIntersection<S>where
S: RefUnwindSafe,
impl<S> Send for MultiIntersection<S>where
S: Send,
impl<S> Sync for MultiIntersection<S>where
S: Sync,
impl<S> Unpin for MultiIntersection<S>where
S: Unpin,
impl<S> UnwindSafe for MultiIntersection<S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more