pub enum ValidationError {
InvalidDomain {
variable_id: VarId,
issue: DomainIssue,
},
InvalidVariableReference {
constraint_id: usize,
variable_id: VarId,
constraint_type: String,
},
ConflictingConstraints {
conflict_type: ConflictType,
variables: Vec<VarId>,
constraint_details: String,
},
InvalidConstraintParameters {
constraint_id: usize,
constraint_type: String,
issue: String,
},
}Expand description
Validation result with specific error types for better error reporting
Variants§
InvalidDomain
Empty or invalid variable domain
InvalidVariableReference
Constraint references non-existent variable
ConflictingConstraints
Conflicting constraints detected
InvalidConstraintParameters
Constraint has invalid parameters
Trait Implementations§
Source§impl Clone for ValidationError
impl Clone for ValidationError
Source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl From<ValidationError> for SolverError
impl From<ValidationError> for SolverError
Source§fn from(validation_error: ValidationError) -> Self
fn from(validation_error: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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