Struct flood_tide::err::OptParseError
source · [−]pub struct OptParseError { /* private fields */ }
Expand description
Single option parse error
Implementations
sourceimpl OptParseError
impl OptParseError
sourceimpl OptParseError
impl OptParseError
pub fn help_message(desc1: &str) -> Self
pub fn version_message(desc1: &str) -> Self
pub fn invalid_option(desc1: &str) -> Self
pub fn missing_option(desc1: &str) -> Self
pub fn invalid_option_argument(desc1: &str, desc2: &str) -> Self
pub fn unexpected_option_argument(desc1: &str, desc2: &str) -> Self
pub fn missing_option_argument(desc1: &str) -> Self
pub fn unexpected_argument(desc1: &str) -> Self
pub fn missing_argument(desc1: &str) -> Self
pub fn invalid_subcommand(desc1: &str) -> Self
pub fn missing_subcommand(desc1: &str) -> Self
pub fn ambiguous_option(desc1: &str, desc2: &str) -> Self
pub fn ambiguous_subcommand(desc1: &str, desc2: &str) -> Self
Trait Implementations
sourceimpl Debug for OptParseError
impl Debug for OptParseError
sourceimpl Display for OptParseError
impl Display for OptParseError
sourceimpl Error for OptParseError
impl Error for OptParseError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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 HelpVersion for OptParseError
impl HelpVersion for OptParseError
sourceimpl PartialEq<OptParseError> for OptParseError
impl PartialEq<OptParseError> for OptParseError
sourcefn eq(&self, other: &OptParseError) -> bool
fn eq(&self, other: &OptParseError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OptParseError) -> bool
fn ne(&self, other: &OptParseError) -> bool
This method tests for !=
.
impl StructuralPartialEq for OptParseError
Auto Trait Implementations
impl RefUnwindSafe for OptParseError
impl Send for OptParseError
impl Sync for OptParseError
impl Unpin for OptParseError
impl UnwindSafe for OptParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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