pub enum FreeValueValidationError {
Parameter(ParamError),
NonFiniteValue {
id: FreeParamId,
name: String,
value: f64,
},
OutsideSupport {
id: FreeParamId,
name: String,
value: f64,
},
}Expand description
Classified failure from validating a free-parameter value vector.
This separates structural input errors from invalid numeric input and values that are finite but outside the parameter support.
Variants§
Parameter(ParamError)
Parameter-layout validation failed before individual values were classified.
NonFiniteValue
A free parameter was assigned a non-finite value.
Fields
§
id: FreeParamIdIdentifier in free-parameter order.
OutsideSupport
A finite free-parameter value was outside its declared support.
Trait Implementations§
Source§impl Clone for FreeValueValidationError
impl Clone for FreeValueValidationError
Source§fn clone(&self) -> FreeValueValidationError
fn clone(&self) -> FreeValueValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FreeValueValidationError
impl Debug for FreeValueValidationError
Source§impl Display for FreeValueValidationError
impl Display for FreeValueValidationError
Source§impl Error for FreeValueValidationError
impl Error for FreeValueValidationError
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 From<ParamError> for FreeValueValidationError
impl From<ParamError> for FreeValueValidationError
Source§fn from(source: ParamError) -> Self
fn from(source: ParamError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FreeValueValidationError
impl PartialEq for FreeValueValidationError
impl StructuralPartialEq for FreeValueValidationError
Auto Trait Implementations§
impl Freeze for FreeValueValidationError
impl RefUnwindSafe for FreeValueValidationError
impl Send for FreeValueValidationError
impl Sync for FreeValueValidationError
impl Unpin for FreeValueValidationError
impl UnsafeUnpin for FreeValueValidationError
impl UnwindSafe for FreeValueValidationError
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