pub enum InputArgumentsErrorKind {
ValueNotInRange {
argument_name: String,
min: f64,
max: f64,
value: f64,
},
ExpectedPositiveNumber {
argument_name: String,
value: i64,
},
ExpectedNonNegativeNumber {
argument_name: String,
value: f64,
},
ArgumentParseError {
argument_name: String,
value: String,
},
}Variants§
Implementations§
Source§impl InputArgumentsErrorKind
impl InputArgumentsErrorKind
pub fn into_error(self) -> InputArgumentsError
Trait Implementations§
Source§impl Clone for InputArgumentsErrorKind
impl Clone for InputArgumentsErrorKind
Source§fn clone(&self) -> InputArgumentsErrorKind
fn clone(&self) -> InputArgumentsErrorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 InputArgumentsErrorKind
impl Debug for InputArgumentsErrorKind
Source§impl Display for InputArgumentsErrorKind
impl Display for InputArgumentsErrorKind
Source§impl Fail for InputArgumentsErrorKind
impl Fail for InputArgumentsErrorKind
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl From<InputArgumentsErrorKind> for InputArgumentsError
impl From<InputArgumentsErrorKind> for InputArgumentsError
Source§fn from(kind: InputArgumentsErrorKind) -> InputArgumentsError
fn from(kind: InputArgumentsErrorKind) -> InputArgumentsError
Converts to this type from the input type.
Source§impl PartialEq for InputArgumentsErrorKind
impl PartialEq for InputArgumentsErrorKind
impl StructuralPartialEq for InputArgumentsErrorKind
Auto Trait Implementations§
impl Freeze for InputArgumentsErrorKind
impl RefUnwindSafe for InputArgumentsErrorKind
impl Send for InputArgumentsErrorKind
impl Sync for InputArgumentsErrorKind
impl Unpin for InputArgumentsErrorKind
impl UnwindSafe for InputArgumentsErrorKind
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