Struct atlatl::fst::builder::Builder
[−]
[src]
pub struct Builder<I, O> where
I: Index,
O: Output, { pub registry: FnvHashMap<State<I, O>, I>, // some fields omitted }
Fields
registry: FnvHashMap<State<I, O>, I>
Methods
impl<I, O> Builder<I, O> where
I: Index,
O: Output,
[src]
I: Index,
O: Output,
fn insert(&mut self, key: &[u8], value: O) -> Result<()>
fn finish(&mut self) -> Result<I>
fn from_iter<K, T>(iter: T) -> Result<Builder<I, O>> where
K: AsRef<[u8]>,
T: IntoIterator<Item = (K, O)>,
K: AsRef<[u8]>,
T: IntoIterator<Item = (K, O)>,
fn root(&self) -> I
fn size(&self) -> usize
fn len(&self) -> usize
Trait Implementations
impl<I: Clone, O: Clone> Clone for Builder<I, O> where
I: Index,
O: Output,
[src]
I: Index,
O: Output,
fn clone(&self) -> Builder<I, O>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<I: Debug, O: Debug> Debug for Builder<I, O> where
I: Index,
O: Output,
[src]
I: Index,
O: Output,
impl<I: Default, O: Default> Default for Builder<I, O> where
I: Index,
O: Output,
[src]
I: Index,
O: Output,
impl<I: Eq, O: Eq> Eq for Builder<I, O> where
I: Index,
O: Output,
[src]
I: Index,
O: Output,
impl<I: PartialEq, O: PartialEq> PartialEq for Builder<I, O> where
I: Index,
O: Output,
[src]
I: Index,
O: Output,