pub struct OptionsBuilder { /* private fields */ }
Expand description
Builder for Options
.
Implementations§
source§impl OptionsBuilder
impl OptionsBuilder
sourcepub const fn new() -> OptionsBuilder
pub const fn new() -> OptionsBuilder
Create new options builder with default options.
sourcepub const fn get_no_multi_digit(&self) -> bool
pub const fn get_no_multi_digit(&self) -> bool
Get if we disable the use of multi-digit optimizations.
sourcepub const fn no_multi_digit(self, no_multi_digit: bool) -> OptionsBuilder
pub const fn no_multi_digit(self, no_multi_digit: bool) -> OptionsBuilder
Set if we disable the use of multi-digit optimizations.
sourcepub const fn build_unchecked(&self) -> Options
pub const fn build_unchecked(&self) -> Options
Build the Options struct with bounds validation.
Trait Implementations§
source§impl Clone for OptionsBuilder
impl Clone for OptionsBuilder
source§fn clone(&self) -> OptionsBuilder
fn clone(&self) -> OptionsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OptionsBuilder
impl Debug for OptionsBuilder
source§impl Default for OptionsBuilder
impl Default for OptionsBuilder
source§fn default() -> OptionsBuilder
fn default() -> OptionsBuilder
Returns the “default value” for a type. Read more
source§impl Ord for OptionsBuilder
impl Ord for OptionsBuilder
source§fn cmp(&self, other: &OptionsBuilder) -> Ordering
fn cmp(&self, other: &OptionsBuilder) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OptionsBuilder
impl PartialEq for OptionsBuilder
source§impl PartialOrd for OptionsBuilder
impl PartialOrd for OptionsBuilder
impl Eq for OptionsBuilder
impl StructuralPartialEq for OptionsBuilder
Auto Trait Implementations§
impl Freeze for OptionsBuilder
impl RefUnwindSafe for OptionsBuilder
impl Send for OptionsBuilder
impl Sync for OptionsBuilder
impl Unpin for OptionsBuilder
impl UnwindSafe for OptionsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)