pub enum ConstraintError {
Show 14 variants
NonFiniteCoefficient,
TargetIsSource {
target: ParameterKey,
},
EmptyLinearTerms,
DuplicateLinearSource {
source: ParameterKey,
},
UnknownTarget {
target: ParameterKey,
},
DuplicateTarget {
target: ParameterKey,
},
UnknownSource {
source: ParameterKey,
},
UnresolvedDependency {
target: Box<ParameterKey>,
source: Box<ParameterKey>,
},
MissingValue {
key: ParameterKey,
},
VectorLengthMismatch {
expected: usize,
actual: usize,
},
NonFiniteVector,
MatrixSizeOverflow,
InternalInvariant,
ExpandedValueOutsideBounds {
key: ParameterKey,
value: f64,
},
}Expand description
Invalid native scalar constraint or transform input.
Variants§
NonFiniteCoefficient
A coefficient, offset, or fixed value is non-finite.
TargetIsSource
A target is also used directly as its source.
Fields
target: ParameterKeyInvalid target.
EmptyLinearTerms
A linear constraint has no sources.
DuplicateLinearSource
A linear constraint repeats one source.
Fields
source: ParameterKeyRepeated source.
UnknownTarget
A target does not belong to the parameter set.
Fields
target: ParameterKeyMissing target.
DuplicateTarget
More than one constraint owns a target.
Fields
target: ParameterKeyRepeated target.
UnknownSource
A source does not belong to the parameter set.
Fields
source: ParameterKeyMissing source.
UnresolvedDependency
A source is constrained later or belongs to a dependency cycle.
Fields
target: Box<ParameterKey>Target currently being resolved.
source: Box<ParameterKey>Unavailable source.
MissingValue
A caller-supplied value map omits a free key.
Fields
key: ParameterKeyMissing key.
VectorLengthMismatch
A solver vector has the wrong length.
NonFiniteVector
A packed or unpacked solver value is non-finite.
MatrixSizeOverflow
Derivative matrix dimensions overflow the platform element count.
InternalInvariant
Private validated transform state is unexpectedly inconsistent.
ExpandedValueOutsideBounds
One expanded physical value violates its declared bounds.
Trait Implementations§
Source§impl Clone for ConstraintError
impl Clone for ConstraintError
Source§fn clone(&self) -> ConstraintError
fn clone(&self) -> ConstraintError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConstraintError
impl Debug for ConstraintError
Source§impl Display for ConstraintError
impl Display for ConstraintError
Source§impl Error for ConstraintError
impl Error for ConstraintError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConstraintError> for RietveldGeneralRefinementError
impl From<ConstraintError> for RietveldGeneralRefinementError
Source§fn from(value: ConstraintError) -> Self
fn from(value: ConstraintError) -> Self
Source§impl From<ConstraintError> for JointRietveldRefinementError
impl From<ConstraintError> for JointRietveldRefinementError
Source§fn from(value: ConstraintError) -> Self
fn from(value: ConstraintError) -> Self
Source§impl From<ConstraintError> for RietveldProjectError
impl From<ConstraintError> for RietveldProjectError
Source§fn from(error: ConstraintError) -> Self
fn from(error: ConstraintError) -> Self
Source§impl From<ConstraintError> for RietveldRecipeError
impl From<ConstraintError> for RietveldRecipeError
Source§fn from(value: ConstraintError) -> Self
fn from(value: ConstraintError) -> Self
Source§impl From<ConstraintError> for RietveldRefinementError
impl From<ConstraintError> for RietveldRefinementError
Source§fn from(value: ConstraintError) -> Self
fn from(value: ConstraintError) -> Self
Source§impl PartialEq for ConstraintError
impl PartialEq for ConstraintError
impl StructuralPartialEq for ConstraintError
Auto Trait Implementations§
impl Freeze for ConstraintError
impl RefUnwindSafe for ConstraintError
impl Send for ConstraintError
impl Sync for ConstraintError
impl Unpin for ConstraintError
impl UnsafeUnpin for ConstraintError
impl UnwindSafe for ConstraintError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.