pub enum ParamError {
Show 16 variants
EmptyName,
DuplicateName(String),
UnknownName(String),
ParameterConflict {
name: String,
reason: String,
},
InvalidParamId {
id: usize,
len: usize,
},
InvalidFreeParamId {
id: usize,
len: usize,
},
FreeLengthMismatch {
expected: usize,
actual: usize,
},
InvalidBounds {
name: String,
min: f64,
max: f64,
},
InvalidInitialRange {
name: String,
min: f64,
max: f64,
},
InitialOutOfBounds {
name: String,
value: f64,
},
InitialRangeOutOfBounds {
name: String,
min: f64,
max: f64,
},
FixedValueOutOfBounds {
name: String,
value: f64,
},
ValueOutOfBounds {
name: String,
value: f64,
},
PeriodicRequiresFiniteBounds {
name: String,
},
InvalidScale {
name: String,
scale: f64,
},
ValueOutsidePeriodicDomain {
name: String,
value: f64,
min: f64,
max: f64,
},
}Expand description
Errors produced while defining, laying out, or assigning parameters.
Variants§
EmptyName
A parameter name was empty.
DuplicateName(String)
A parameter name was registered more than once.
UnknownName(String)
A parameter name was not present in the layout.
ParameterConflict
Two definitions of the same parameter were incompatible.
InvalidParamId
A parameter identifier was outside the layout.
InvalidFreeParamId
A free-parameter identifier was outside the layout.
FreeLengthMismatch
A free-parameter value vector had the wrong length.
InvalidBounds
A parameter’s lower bound exceeded its upper bound.
InvalidInitialRange
A uniform initial range had its endpoints reversed.
InitialOutOfBounds
A parameter’s initial value fell outside its bounds.
InitialRangeOutOfBounds
A parameter’s initial range extended outside its bounds.
FixedValueOutOfBounds
A fixed parameter value fell outside its bounds.
ValueOutOfBounds
An assigned parameter value fell outside its bounds.
PeriodicRequiresFiniteBounds
A periodic parameter did not have finite, ordered bounds.
InvalidScale
A parameter scale was not finite and positive.
ValueOutsidePeriodicDomain
A periodic value was outside its canonical half-open domain.
Trait Implementations§
Source§impl Clone for ParamError
impl Clone for ParamError
Source§fn clone(&self) -> ParamError
fn clone(&self) -> ParamError
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 ParamError
impl Debug for ParamError
Source§impl Display for ParamError
impl Display for ParamError
Source§impl Error for ParamError
impl Error for ParamError
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()