pub enum ArgsError {
TooMany(usize, usize),
TooManyPos(usize, usize),
Missing(Name),
Unexpected(Name),
Eval(Box<Error>),
}
Expand description
Error evaluating arguments
Variants§
TooMany(usize, usize)
Got the first number of arguments, but only the second number allowed.
TooManyPos(usize, usize)
Got the first number of positional arguments, but only the second number allowed.
Missing(Name)
A required argument is missing
Unexpected(Name)
Got unexpected named argumet
Eval(Box<Error>)
An error evaluating one of the arguments.
Implementations§
Trait Implementations§
source§impl From<ScopeError> for ArgsError
impl From<ScopeError> for ArgsError
source§fn from(e: ScopeError) -> Self
fn from(e: ScopeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArgsError
impl !RefUnwindSafe for ArgsError
impl Send for ArgsError
impl Sync for ArgsError
impl Unpin for ArgsError
impl !UnwindSafe for ArgsError
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