pub enum ConstraintWeightError {
UnknownConstraint {
name: String,
suggestions: Vec<String>,
known: Vec<String>,
},
MultiplierTooLarge {
name: String,
multiplier: u32,
max: u32,
},
}Expand description
Error reported when constraint weights do not fit the model’s constraints.
Variants§
UnknownConstraint
A listed name matches no constraint in the model.
Fields
MultiplierTooLarge
A multiplier exceeds MAX_CONSTRAINT_WEIGHT_MULTIPLIER.
Trait Implementations§
Source§impl Clone for ConstraintWeightError
impl Clone for ConstraintWeightError
Source§impl Debug for ConstraintWeightError
impl Debug for ConstraintWeightError
Source§impl Display for ConstraintWeightError
impl Display for ConstraintWeightError
impl Eq for ConstraintWeightError
Source§impl Error for ConstraintWeightError
impl Error for ConstraintWeightError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ConstraintWeightError
impl PartialEq for ConstraintWeightError
impl StructuralPartialEq for ConstraintWeightError
Auto Trait Implementations§
impl Freeze for ConstraintWeightError
impl RefUnwindSafe for ConstraintWeightError
impl Send for ConstraintWeightError
impl Sync for ConstraintWeightError
impl Unpin for ConstraintWeightError
impl UnsafeUnpin for ConstraintWeightError
impl UnwindSafe for ConstraintWeightError
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