pub enum ParamError {
Show 25 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,
},
InvalidBoundValue {
name: String,
value: f64,
},
InvalidInitialRange {
name: String,
min: f64,
max: f64,
},
InitialOutOfBounds {
name: String,
value: f64,
},
InitialRangeOutOfBounds {
name: String,
min: f64,
max: f64,
},
NonFiniteInitialValue {
name: String,
value: f64,
},
NonFiniteInitialRange {
name: String,
min: f64,
max: f64,
},
FixedValueOutOfBounds {
name: String,
value: f64,
},
NonFiniteFixedValue {
name: String,
value: f64,
},
ValueOutOfBounds {
name: String,
value: f64,
},
PeriodicRequiresFiniteBounds {
name: String,
},
InvalidScale {
name: String,
scale: f64,
},
InvalidUpdateFixedValue {
value: f64,
},
InvalidUpdateInitialValue {
value: f64,
},
InvalidUpdateInitialRange {
min: f64,
max: f64,
},
InvalidUpdateBounds {
min: Option<f64>,
max: Option<f64>,
},
InvalidUpdateScale {
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.
InvalidBoundValue
A parameter bound was NaN.
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.
NonFiniteInitialValue
A scalar initial value was not finite.
NonFiniteInitialRange
An initial range endpoint was not finite.
FixedValueOutOfBounds
A fixed parameter value fell outside its bounds.
NonFiniteFixedValue
A fixed parameter value was not finite.
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.
InvalidUpdateFixedValue
A fixed value in a parameter update was not finite.
InvalidUpdateInitialValue
A scalar initial value in a parameter update was not finite.
InvalidUpdateInitialRange
A uniform initial range in a parameter update was not finite or ordered.
InvalidUpdateBounds
Bounds in a parameter update were unordered or contained NaN.
InvalidUpdateScale
A scale in a parameter update 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()
Source§impl From<ParamError> for ExprError
impl From<ParamError> for ExprError
Source§fn from(source: ParamError) -> ExprError
fn from(source: ParamError) -> ExprError
Source§impl From<ParamError> for FreeValueValidationError
impl From<ParamError> for FreeValueValidationError
Source§fn from(source: ParamError) -> FreeValueValidationError
fn from(source: ParamError) -> FreeValueValidationError
Source§impl From<ParamError> for CompileError
impl From<ParamError> for CompileError
Source§fn from(source: ParamError) -> CompileError
fn from(source: ParamError) -> CompileError
Source§impl From<ParamError> for LikelihoodError
impl From<ParamError> for LikelihoodError
Source§fn from(source: ParamError) -> LikelihoodError
fn from(source: ParamError) -> LikelihoodError
Source§impl PartialEq for ParamError
impl PartialEq for ParamError
impl StructuralPartialEq for ParamError
Auto Trait Implementations§
impl Freeze for ParamError
impl RefUnwindSafe for ParamError
impl Send for ParamError
impl Sync for ParamError
impl Unpin for ParamError
impl UnsafeUnpin for ParamError
impl UnwindSafe for ParamError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.