pub struct OptionParseError(pub String);Expand description
A failed parse_option — the get-option string didn’t parse for the
option’s value type. Carries the underlying parser message.
Display renders plugin option parse failed: <message>.
Tuple Fields§
§0: StringThe value type’s FromStr error message, e.g. invalid digit found in string. Diagnostic text, not a stable format to match on.
Trait Implementations§
Source§impl Clone for OptionParseError
impl Clone for OptionParseError
Source§fn clone(&self) -> OptionParseError
fn clone(&self) -> OptionParseError
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 OptionParseError
impl Debug for OptionParseError
Source§impl Display for OptionParseError
impl Display for OptionParseError
impl Eq for OptionParseError
Source§impl Error for OptionParseError
impl Error for OptionParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for OptionParseError
impl PartialEq for OptionParseError
impl StructuralPartialEq for OptionParseError
Auto Trait Implementations§
impl Freeze for OptionParseError
impl RefUnwindSafe for OptionParseError
impl Send for OptionParseError
impl Sync for OptionParseError
impl Unpin for OptionParseError
impl UnsafeUnpin for OptionParseError
impl UnwindSafe for OptionParseError
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