Struct secret_toolkit_storage::keymap::KeymapBuilder
source · pub struct KeymapBuilder<'a, K, T, Ser = Bincode2, I = WithIter> { /* private fields */ }
Implementations§
source§impl<'a, K, T, Ser> KeymapBuilder<'a, K, T, Ser, WithIter>
impl<'a, K, T, Ser> KeymapBuilder<'a, K, T, Ser, WithIter>
sourcepub const fn with_page_size(&self, indexes_size: u32) -> Self
pub const fn with_page_size(&self, indexes_size: u32) -> Self
Modifies the number of keys stored in one page of indexing, for the iterator
sourcepub const fn without_iter(&self) -> KeymapBuilder<'a, K, T, Ser, WithoutIter>
pub const fn without_iter(&self) -> KeymapBuilder<'a, K, T, Ser, WithoutIter>
Disables the iterator of the keymap, saving at least 4000 gas in each insertion.
source§impl<'a, K, T, Ser> KeymapBuilder<'a, K, T, Ser, WithoutIter>
impl<'a, K, T, Ser> KeymapBuilder<'a, K, T, Ser, WithoutIter>
pub const fn build(&self) -> Keymap<'a, K, T, Ser, WithoutIter>
Auto Trait Implementations§
impl<'a, K, T, Ser, I> RefUnwindSafe for KeymapBuilder<'a, K, T, Ser, I>
impl<'a, K, T, Ser, I> Send for KeymapBuilder<'a, K, T, Ser, I>
impl<'a, K, T, Ser, I> Sync for KeymapBuilder<'a, K, T, Ser, I>
impl<'a, K, T, Ser, I> Unpin for KeymapBuilder<'a, K, T, Ser, I>
impl<'a, K, T, Ser, I> UnwindSafe for KeymapBuilder<'a, K, T, Ser, I>
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