pub trait ValuatorBuilderExt {
// Required methods
fn with_bounds(self, a: f64, b: f64) -> Self;
fn with_minimum(self, a: f64) -> Self;
fn with_maximum(self, a: f64) -> Self;
fn with_range(self, a: f64, b: f64) -> Self;
fn with_step(self, a: f64, b: i32) -> Self;
fn with_precision(self, digits: i32) -> Self;
fn with_value(self, arg2: f64) -> Self;
}
Expand description
Adds builder pattern friendly versions of several setter functions
Required Methods§
Sourcefn with_bounds(self, a: f64, b: f64) -> Self
fn with_bounds(self, a: f64, b: f64) -> Self
Set bounds of a valuator
Sourcefn with_minimum(self, a: f64) -> Self
fn with_minimum(self, a: f64) -> Self
Set the minimum bound of a valuator
Sourcefn with_maximum(self, a: f64) -> Self
fn with_maximum(self, a: f64) -> Self
Set the maximum bound of a valuator
Sourcefn with_range(self, a: f64, b: f64) -> Self
fn with_range(self, a: f64, b: f64) -> Self
Set the range of a valuator
Sourcefn with_step(self, a: f64, b: i32) -> Self
fn with_step(self, a: f64, b: i32) -> Self
Set change step of a valuator. Rounds to multiples of a/b, or no rounding if a is zero
Sourcefn with_precision(self, digits: i32) -> Self
fn with_precision(self, digits: i32) -> Self
Set the precision of a valuator
Sourcefn with_value(self, arg2: f64) -> Self
fn with_value(self, arg2: f64) -> Self
Set the value of a valuator
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.