SortedPairIterator

Trait SortedPairIterator 

Source
pub trait SortedPairIterator<K, V>: Sized + Iterator {
    // Provided methods
    fn join<W, J>(self, that: J) -> Join<Self, J>
       where J: SortedPairIterator<K, W> { ... }
    fn left_join<W, J>(self, that: J) -> LeftJoin<Self, J>
       where J: SortedPairIterator<K, W> { ... }
    fn right_join<W, J>(self, that: J) -> RightJoin<Self, J>
       where J: SortedPairIterator<K, W> { ... }
    fn outer_join<W, J>(self, that: J) -> OuterJoin<Self, J>
       where J: SortedPairIterator<K, W> { ... }
    fn map_values<W, F>(self, f: F) -> MapValues<Self, F>
       where F: FnMut(V) -> W { ... }
    fn filter_map_values<W, F>(self, f: F) -> FilterMapValues<Self, F>
       where F: FnMut(V) -> W { ... }
    fn keys(self) -> Keys<Self> { ... }
}
Expand description

relational operations for iterators of pairs where the items are sorted according to the key

Provided Methods§

Source

fn join<W, J>(self, that: J) -> Join<Self, J>
where J: SortedPairIterator<K, W>,

Source

fn left_join<W, J>(self, that: J) -> LeftJoin<Self, J>
where J: SortedPairIterator<K, W>,

Source

fn right_join<W, J>(self, that: J) -> RightJoin<Self, J>
where J: SortedPairIterator<K, W>,

Source

fn outer_join<W, J>(self, that: J) -> OuterJoin<Self, J>
where J: SortedPairIterator<K, W>,

Source

fn map_values<W, F>(self, f: F) -> MapValues<Self, F>
where F: FnMut(V) -> W,

Source

fn filter_map_values<W, F>(self, f: F) -> FilterMapValues<Self, F>
where F: FnMut(V) -> W,

Source

fn keys(self) -> Keys<Self>

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.

Implementors§

Source§

impl<K, V, I> SortedPairIterator<K, V> for I
where I: Iterator<Item = (K, V)> + SortedByKey,