Struct flood_tide::err::OptParseError
source · pub struct OptParseError { /* private fields */ }
Expand description
Single option parse error
Implementations§
source§impl OptParseError
impl OptParseError
source§impl 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§
source§impl Debug for OptParseError
impl Debug for OptParseError
source§impl Display for OptParseError
impl Display for OptParseError
source§impl Error for OptParseError
impl Error for OptParseError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl HelpVersion for OptParseError
impl HelpVersion for OptParseError
source§impl PartialEq for OptParseError
impl PartialEq for OptParseError
source§fn 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 ==
.impl Eq for OptParseError
impl StructuralPartialEq for OptParseError
Auto Trait Implementations§
impl Freeze for OptParseError
impl RefUnwindSafe for OptParseError
impl Send for OptParseError
impl Sync for OptParseError
impl Unpin for OptParseError
impl UnwindSafe for OptParseError
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