pub struct OptionConflict {
pub name: String,
pub existing: Box<OptionDef>,
pub attempted: Box<OptionDef>,
}Expand description
Raised when an option name is attached with a definition that disagrees with the one already recorded for that name. Surfacing this at attach time is the runtime-verifiable guarantee that every uniquely-named option parses one way.
Fields§
§name: String§existing: Box<OptionDef>§attempted: Box<OptionDef>Trait Implementations§
Source§impl Clone for OptionConflict
impl Clone for OptionConflict
Source§fn clone(&self) -> OptionConflict
fn clone(&self) -> OptionConflict
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 OptionConflict
impl Debug for OptionConflict
Source§impl Display for OptionConflict
impl Display for OptionConflict
impl Eq for OptionConflict
Source§impl Error for OptionConflict
impl Error for OptionConflict
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 OptionConflict
impl PartialEq for OptionConflict
Source§fn eq(&self, other: &OptionConflict) -> bool
fn eq(&self, other: &OptionConflict) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionConflict
Auto Trait Implementations§
impl Freeze for OptionConflict
impl RefUnwindSafe for OptionConflict
impl Send for OptionConflict
impl Sync for OptionConflict
impl Unpin for OptionConflict
impl UnsafeUnpin for OptionConflict
impl UnwindSafe for OptionConflict
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