pub enum DeclarationError {
AlreadyDeclared,
NoValueAvailable,
OverrideValueTypeMismatch,
PriorValueTypeMismatch,
InitialValueOutOfRange,
InvalidRange,
}
Expand description
Error that can be generated when doing operations on parameters.
Variants§
AlreadyDeclared
Parameter was already declared and a new declaration was attempted.
NoValueAvailable
Parameter was declared as non optional but no value was available, either through a user specified default, a command-line override, or a previously set value.
OverrideValueTypeMismatch
The override value that was provided has the wrong type. This error is bypassed
when using ParameterBuilder::ignore_override()
.
PriorValueTypeMismatch
The value that the parameter was already set to has the wrong type. This error
is bypassed when using ParameterBuilder::discard_mismatching_prior_value
.
InitialValueOutOfRange
The initial value that was selected is out of range.
InvalidRange
An invalid range was provided to a parameter declaration (i.e. lower bound > higher bound).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeclarationError
impl RefUnwindSafe for DeclarationError
impl Send for DeclarationError
impl Sync for DeclarationError
impl Unpin for DeclarationError
impl UnwindSafe for DeclarationError
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