pub trait TupleBuilder: Builder {
    type Item;

    // Required methods
    fn new() -> Self;
    fn with_capacity(cap: usize) -> Self;
    fn push_tuple(&mut self, tuple: Self::Item);
}
Expand description

A type used to assemble collections from ordered sequences of tuples.

Required Associated Types§

source

type Item

The type of item accepted for construction.

Required Methods§

source

fn new() -> Self

Allocates a new builder.

source

fn with_capacity(cap: usize) -> Self

Allocates a new builder with capacity for at least cap tuples.

source

fn push_tuple(&mut self, tuple: Self::Item)

Inserts a new into the collection.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<K, L, O, C> TupleBuilder for OrderedBuilder<K, L, O, C>where K: Ord + Clone, C: BatchContainer<Item = K>, L: TupleBuilder, O: OrdOffset,

§

type Item = (K, <L as TupleBuilder>::Item)

source§

impl<K: Ord + Clone, R: Semigroup + Clone, C> TupleBuilder for OrderedLeafBuilder<K, R, C>where C: BatchContainer<Item = (K, R)> + Deref<Target = [(K, R)]>,

§

type Item = (K, R)