pub enum StrictError {
InvalidShortOption {
ch: char,
message: String,
},
UnrecognizedLongOption {
flag: String,
message: String,
},
MissingArgument {
ch: char,
message: String,
},
}Available on crate feature
strict-compat only.Expand description
Strict-mode parse error. Carries the formatted, byte-equal upstream diagnostic for emission on stderr.
Variants§
InvalidShortOption
Excluded short flag (e.g. -L); message is
figlet: invalid option -- 'X'.
Fields
UnrecognizedLongOption
Excluded long flag (e.g. --info-dump); message is
figlet: unrecognized option '--info-dump'.
Fields
MissingArgument
A short flag that takes an argument was supplied with no value.
Implementations§
Trait Implementations§
Source§impl Clone for StrictError
impl Clone for StrictError
Source§fn clone(&self) -> StrictError
fn clone(&self) -> StrictError
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 StrictError
impl Debug for StrictError
Source§impl From<StrictError> for FigletError
impl From<StrictError> for FigletError
Source§fn from(err: StrictError) -> Self
fn from(err: StrictError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StrictError
impl PartialEq for StrictError
Source§fn eq(&self, other: &StrictError) -> bool
fn eq(&self, other: &StrictError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for StrictError
impl StructuralPartialEq for StrictError
Auto Trait Implementations§
impl Freeze for StrictError
impl RefUnwindSafe for StrictError
impl Send for StrictError
impl Sync for StrictError
impl Unpin for StrictError
impl UnsafeUnpin for StrictError
impl UnwindSafe for StrictError
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