[][src]Trait sorted_iter::SortedPairIterator

pub trait SortedPairIterator<K, V> {
    type I: Iterator<Item = (K, V)>;
    fn map_values<W, F: FnMut(V) -> W>(self, f: F) -> MapValues<Self::I, F>;
fn filter_map_values<W, F: FnMut(V) -> W>(
        self,
        f: F
    ) -> FilterMapValues<Self::I, F>;
fn keys(self) -> Keys<Self::I>;
fn join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
        self,
        that: J
    ) -> Join<Self::I, J>;
fn left_join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
        self,
        that: J
    ) -> LeftJoin<Self::I, J>;
fn right_join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
        self,
        that: J
    ) -> RightJoin<Self::I, J>;
fn outer_join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
        self,
        that: J
    ) -> OuterJoin<Self::I, J>; }

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

Associated Types

type I: Iterator<Item = (K, V)>

Loading content...

Required methods

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

map values while leaving keys alone

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

filter_map values while leaving keys alone

Important traits for Keys<I>
fn keys(self) -> Keys<Self::I>

keys as an iterator that is sorted by item

Important traits for Join<I, J>
fn join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
    self,
    that: J
) -> Join<Self::I, J>

inner join with another sorted pair iterator

Important traits for LeftJoin<I, J>
fn left_join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
    self,
    that: J
) -> LeftJoin<Self::I, J>

left join with another sorted pair iterator

Important traits for RightJoin<I, J>
fn right_join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
    self,
    that: J
) -> RightJoin<Self::I, J>

right join with another sorted pair iterator

Important traits for OuterJoin<I, J>
fn outer_join<W, J: Iterator<Item = (K, W)> + SortedByKey>(
    self,
    that: J
) -> OuterJoin<Self::I, J>

outer join with another sorted pair iterator

Loading content...

Implementors

impl<K: Ord, V, I: Iterator<Item = (K, V)> + SortedByKey> SortedPairIterator<K, V> for I[src]

type I = I

Loading content...