Trait differential_dataflow::trace::layers::TupleBuilder
[−]
[src]
pub trait TupleBuilder: Builder { type Item; fn new() -> Self; fn with_capacity(cap: usize) -> Self; fn push_tuple(&mut self, tuple: Self::Item); }
A type used to assemble collections from ordered sequences of tuples.
Associated Types
type Item
The type of item accepted for construction.
Required Methods
fn new() -> Self
Allocates a new builder.
fn with_capacity(cap: usize) -> Self
Allocates a new builder with capacity for at least cap
tuples.
fn push_tuple(&mut self, tuple: Self::Item)
Inserts a new into the collection.
Implementors
impl<K: Ord + Clone, L: TupleBuilder> TupleBuilder for OrderedBuilder<K, L> type Item = (K, L::Item);
impl<K: Ord + Clone, R: Diff + Clone> TupleBuilder for OrderedLeafBuilder<K, R> type Item = (K, R);
impl<K: HashOrdered + Clone + Default, L: TupleBuilder> TupleBuilder for HashedBuilder<K, L> type Item = (K, L::Item);