[−][src]Struct sequence_map::Builder
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,