Struct revolver::command::ParseCommandError
source · Expand description
Raised by either Commander
or a NamedCommandParser
if the supplied string slice could
not be parsed into a valid Command
object.
Tuple Fields
0: Cow<'static, str>
Implementations
sourceimpl ParseCommandError
impl ParseCommandError
sourcepub fn convert<E: ToString>(err: E) -> Self
pub fn convert<E: ToString>(err: E) -> Self
Converts anything representable as a String
into a ParseCommandError
, consuming
the original. This is mostly used in error conversion; e.g., in Result::map_err()
.
Trait Implementations
sourceimpl Clone for ParseCommandError
impl Clone for ParseCommandError
sourcefn clone(&self) -> ParseCommandError
fn clone(&self) -> ParseCommandError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ParseCommandError
impl Debug for ParseCommandError
sourceimpl Display for ParseCommandError
impl Display for ParseCommandError
sourceimpl Error for ParseCommandError
impl Error for ParseCommandError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<ParseCommandError> for ParseCommandError
impl PartialEq<ParseCommandError> for ParseCommandError
sourcefn eq(&self, other: &ParseCommandError) -> bool
fn eq(&self, other: &ParseCommandError) -> bool
impl Eq for ParseCommandError
impl StructuralEq for ParseCommandError
impl StructuralPartialEq for ParseCommandError
Auto Trait Implementations
impl RefUnwindSafe for ParseCommandError
impl Send for ParseCommandError
impl Sync for ParseCommandError
impl Unpin for ParseCommandError
impl UnwindSafe for ParseCommandError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more