pub enum ArgParseError {
TooShort {
required: u16,
got: u16,
},
}Expand description
Failure reason for #[hopper::args] T::parse.
Exposed here (rather than in hopper-core) because programs that use
the args derive will already depend on hopper-schema for SchemaExport.
Keeping the error type in schema avoids an extra dependency edge.
Variants§
TooShort
Not enough bytes to cover the packed struct size.
Trait Implementations§
Source§impl Clone for ArgParseError
impl Clone for ArgParseError
Source§fn clone(&self) -> ArgParseError
fn clone(&self) -> ArgParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArgParseError
impl Debug for ArgParseError
Source§impl Display for ArgParseError
impl Display for ArgParseError
Source§impl PartialEq for ArgParseError
impl PartialEq for ArgParseError
Source§fn eq(&self, other: &ArgParseError) -> bool
fn eq(&self, other: &ArgParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ArgParseError
impl Eq for ArgParseError
impl StructuralPartialEq for ArgParseError
Auto Trait Implementations§
impl Freeze for ArgParseError
impl RefUnwindSafe for ArgParseError
impl Send for ArgParseError
impl Sync for ArgParseError
impl Unpin for ArgParseError
impl UnsafeUnpin for ArgParseError
impl UnwindSafe for ArgParseError
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