ModelConstraints

Trait ModelConstraints 

Source
pub trait ModelConstraints {
    // Required methods
    fn post<T: Into<ConstraintInput>>(&mut self, input: T);
    fn post_all<T: Into<ConstraintInput>>(&mut self, inputs: Vec<T>);
}
Expand description

Extension trait for Model to provide unified constraint posting

Required Methods§

Source

fn post<T: Into<ConstraintInput>>(&mut self, input: T)

Post a constraint to the model - unified method that accepts multiple input types

Source

fn post_all<T: Into<ConstraintInput>>(&mut self, inputs: Vec<T>)

Post multiple constraints at once (batch operation)

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.

Implementors§