[][src]Struct sequence_map::Builder

pub struct Builder { /* fields omitted */ }

A map builder. Creates a sequence map, allowing the user to insert, repeatedly, a number of key-value pairs. Use Builder::new to create.

Implementations

impl Builder[src]

pub fn new(bits: usize) -> Builder[src]

Creates a new map builder. bits determines how many bits are used for each level of the internal trie, min bits is 2, and max is 16. The more bits are used, the faster the lookup, but the larger the resulting binary format.

pub fn build(self) -> Vec<u8>[src]

Creates the resulting vector of bytes that encodes this sequence map.

pub fn insert(&mut self, key: u64, value: &str)[src]

Inserts this key-value pair into the map.

Trait Implementations

impl Debug for Builder[src]

Auto Trait Implementations

impl RefUnwindSafe for Builder

impl Send for Builder

impl Sync for Builder

impl Unpin for Builder

impl UnwindSafe for Builder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.