pub trait ConstraintOptionsBuilder: Sized {
// Required methods
fn with_operator(self, operator: LogicalOperator) -> Self;
fn with_threshold(self, threshold: f64) -> Self;
fn with_option(self, name: &str, value: bool) -> Self;
}Expand description
Builder pattern for constraint options.
This trait provides a fluent interface for configuring constraints with various options.
Required Methods§
Sourcefn with_operator(self, operator: LogicalOperator) -> Self
fn with_operator(self, operator: LogicalOperator) -> Self
Sets the logical operator for combining results.
Sourcefn with_threshold(self, threshold: f64) -> Self
fn with_threshold(self, threshold: f64) -> Self
Sets the threshold value.
Sourcefn with_option(self, name: &str, value: bool) -> Self
fn with_option(self, name: &str, value: bool) -> Self
Enables or disables a boolean option.
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.