Struct foropts::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
The error type for argument parser.
Methods
impl Error
[src]
pub fn from_string<S: ToString + ?Sized>(e: &S) -> Self
[src]
Creates an argument error from any type that can be stringified.
pub fn with_option<S: Into<String>>(self, option: S) -> Self
[src]
Sets the particular option that triggered the error.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
[src]
This method tests for !=
.