Skip to main content

Module set

Module set 

Source
Expand description

Set operations on iterators and streams.

Sorted variants require their inputs to be ascending under a total order and preserve multiplicity. The unsorted [intersection] runs in O(n*m) and is provided for convenience when sorting is unavailable.

Re-exportsยง

use std::borrow::Borrow; ๐Ÿ”’
use std::collections::BTreeSet; ๐Ÿ”’
use std::pin::Pin; ๐Ÿ”’
use std::task::ready; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::task::Context; ๐Ÿ”’
use futures::task::Poll; ๐Ÿ”’
pub use self::difference_sorted_stream2::difference_sorted_stream2;
pub use self::intersection::intersection;
pub use self::intersection_sorted::intersection_sorted;
pub use self::intersection_sorted_stream2::intersection_sorted_stream2;

Modulesยง

difference_sorted_stream2 ๐Ÿ”’
intersection ๐Ÿ”’
intersection_sorted ๐Ÿ”’
intersection_sorted_stream2 ๐Ÿ”’

Functionsยง

is_empty_or_contains
Reports whether allowed is empty or contains item.
poll_head ๐Ÿ”’
Lazily fill the cached head of stream into peeked and return a borrow.