pub trait Builder {
    type Trie: Trie;

    // Required methods
    fn boundary(&mut self) -> usize;
    fn done(self) -> Self::Trie;
}
Expand description

A type used to assemble collections.

Required Associated Types§

source

type Trie: Trie

The type of collection produced.

Required Methods§

source

fn boundary(&mut self) -> usize

Requests a commitment to the offset of the current-most sub-collection.

This is most often used by parent collections to indicate that some set of values are now logically distinct from the next set of values, and that the builder should acknowledge this and report the limit (to store as an offset in the parent collection).

source

fn done(self) -> Self::Trie

Finalizes the building process and returns the collection.

Implementors§

source§

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

§

type Trie = OrderedLayer<K, <L as Builder>::Trie, O, C>

source§

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

§

type Trie = OrderedLeaf<K, R, C>