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§
Sourcefn post<T: Into<ConstraintInput>>(&mut self, input: T)
fn post<T: Into<ConstraintInput>>(&mut self, input: T)
Post a constraint to the model - unified method that accepts multiple input types
Sourcefn post_all<T: Into<ConstraintInput>>(&mut self, inputs: Vec<T>)
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.