pub struct ValidationPipeline { /* private fields */ }Expand description
Validation pipeline orchestrating cases, monotonicity, and NaN safety.
Implementations§
Source§impl ValidationPipeline
impl ValidationPipeline
Sourcepub fn new(thresholds: ValidationThresholds) -> ValidationPipeline
pub fn new(thresholds: ValidationThresholds) -> ValidationPipeline
Creates an empty pipeline with the specified thresholds.
Sourcepub fn add_case(self, case: ValidationCase) -> ValidationPipeline
pub fn add_case(self, case: ValidationCase) -> ValidationPipeline
Adds a validation case.
Sourcepub fn add_cases(self, cases: Vec<ValidationCase>) -> ValidationPipeline
pub fn add_cases(self, cases: Vec<ValidationCase>) -> ValidationPipeline
Adds multiple validation cases.
Sourcepub fn add_monotonicity(self, check: MonotonicityCheck) -> ValidationPipeline
pub fn add_monotonicity(self, check: MonotonicityCheck) -> ValidationPipeline
Adds a monotonicity check.
Sourcepub fn add_nan_check(self, check: NanSafetyCheck) -> ValidationPipeline
pub fn add_nan_check(self, check: NanSafetyCheck) -> ValidationPipeline
Adds a NaN safety check.
Sourcepub fn with_default_cases(self) -> ValidationPipeline
pub fn with_default_cases(self) -> ValidationPipeline
Loads the default validation cases.
Sourcepub fn with_default_monotonicity(self) -> ValidationPipeline
pub fn with_default_monotonicity(self) -> ValidationPipeline
Loads the default monotonicity checks.
Sourcepub fn with_default_nan_safety(self) -> ValidationPipeline
pub fn with_default_nan_safety(self) -> ValidationPipeline
Loads the default NaN safety checks.
Sourcepub fn full_default(thresholds: ValidationThresholds) -> ValidationPipeline
pub fn full_default(thresholds: ValidationThresholds) -> ValidationPipeline
Creates a full pipeline with all default cases and checks.
Sourcepub fn run(&self) -> PipelineOutcome
pub fn run(&self) -> PipelineOutcome
Runs the full pipeline and returns the overall outcome.
Sourcepub fn case_count(&self) -> usize
pub fn case_count(&self) -> usize
Number of registered validation cases.
Sourcepub fn monotonicity_count(&self) -> usize
pub fn monotonicity_count(&self) -> usize
Number of registered monotonicity checks.
Sourcepub fn nan_check_count(&self) -> usize
pub fn nan_check_count(&self) -> usize
Number of registered NaN checks.
Auto Trait Implementations§
impl Freeze for ValidationPipeline
impl RefUnwindSafe for ValidationPipeline
impl Send for ValidationPipeline
impl Sync for ValidationPipeline
impl Unpin for ValidationPipeline
impl UnsafeUnpin for ValidationPipeline
impl UnwindSafe for ValidationPipeline
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