pub struct MapBuilder<'a, K> { /* private fields */ }Expand description
Static Map builder
Computes an appropriate static map based on the provided keys.
Implementations§
Source§impl<'a, K> MapBuilder<'a, K>
impl<'a, K> MapBuilder<'a, K>
pub fn new() -> Self
Sourcepub fn force_build(&mut self, flag: bool) -> &mut Self
pub fn force_build(&mut self, flag: bool) -> &mut Self
Try to construct even if keys is very large
pub fn set_limit(&mut self, limit: Option<u64>) -> &mut Self
pub fn set_seed(&mut self, seed: u64) -> &mut Self
pub fn set_ord(&mut self, f: OrdFunc<'a, K>) -> &mut Self
pub fn set_hash(&mut self, f: HashFunc<'a, K>) -> &mut Self
pub fn set_next_seed(&mut self, f: fn(u64, u64) -> u64) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl<'a, K> Freeze for MapBuilder<'a, K>
impl<'a, K> !RefUnwindSafe for MapBuilder<'a, K>
impl<'a, K> !Send for MapBuilder<'a, K>
impl<'a, K> !Sync for MapBuilder<'a, K>
impl<'a, K> Unpin for MapBuilder<'a, K>
impl<'a, K> !UnwindSafe for MapBuilder<'a, K>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more