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