pub struct Builder<'a> { /* private fields */ }Expand description
Configures an FF1; obtained from FF1::builder.
Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
Sourcepub fn alphabet(self, alphabet: &'a str) -> Self
pub fn alphabet(self, alphabet: &'a str) -> Self
Enable the string interface: exactly radix distinct characters, the
character at position i standing for numeral i.
Sourcepub fn tweak(self, tweak: &'a [u8]) -> Self
pub fn tweak(self, tweak: &'a [u8]) -> Self
The tweak used when a call passes None. Defaults to empty.
Sourcepub fn min_tweak_len(self, len: usize) -> Self
pub fn min_tweak_len(self, len: usize) -> Self
Inclusive minimum tweak length, checked on every tweak.
Sourcepub fn max_tweak_len(self, len: usize) -> Self
pub fn max_tweak_len(self, len: usize) -> Self
Inclusive maximum tweak length, checked on every tweak. 0 is literal
and admits only an empty tweak; leave it unset for no maximum.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> RefUnwindSafe for Builder<'a>
impl<'a> Send for Builder<'a>
impl<'a> Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> UnsafeUnpin for Builder<'a>
impl<'a> UnwindSafe for Builder<'a>
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