Trait SortedPairIterator

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

Source

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

Source

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

Source

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

Source

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

Source

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

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,