pub struct AlgorithmConfig { /* private fields */ }Implementations§
Source§impl AlgorithmConfig
impl AlgorithmConfig
pub fn new( n_levels: u64, output_style: OutputStyle, negative_handling: NegativeHandling, ) -> Self
pub fn with_n_levels(self, n_levels: u64) -> Self
pub fn with_negative_handling(self, negative_handling: NegativeHandling) -> Self
pub fn with_output_style(self, output_style: OutputStyle) -> Self
pub fn n_levels(&self) -> u64
pub fn output_style(&self) -> OutputStyle
pub fn negative_handling(&self) -> NegativeHandling
Trait Implementations§
Source§impl AsRef<AlgorithmConfig> for Config
impl AsRef<AlgorithmConfig> for Config
Source§fn as_ref(&self) -> &AlgorithmConfig
fn as_ref(&self) -> &AlgorithmConfig
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for AlgorithmConfig
impl Clone for AlgorithmConfig
Source§fn clone(&self) -> AlgorithmConfig
fn clone(&self) -> AlgorithmConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlgorithmConfig
Source§impl Debug for AlgorithmConfig
impl Debug for AlgorithmConfig
Source§impl Default for AlgorithmConfig
impl Default for AlgorithmConfig
Source§impl PartialEq for AlgorithmConfig
impl PartialEq for AlgorithmConfig
Source§fn eq(&self, other: &AlgorithmConfig) -> bool
fn eq(&self, other: &AlgorithmConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlgorithmConfig
Auto Trait Implementations§
impl Freeze for AlgorithmConfig
impl RefUnwindSafe for AlgorithmConfig
impl Send for AlgorithmConfig
impl Sync for AlgorithmConfig
impl Unpin for AlgorithmConfig
impl UnsafeUnpin for AlgorithmConfig
impl UnwindSafe for AlgorithmConfig
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more