pub enum WarningKind {
Repeated,
Contradictory,
Redundant,
}Expand description
How two (or more) flags fight.
Variants§
Repeated
Same flag twice (--format json --format pretty).
Contradictory
Opposite flags (--color always --no-color).
Redundant
Aliases of the same flag (--dry-run --preview).
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
Source§fn clone(&self) -> WarningKind
fn clone(&self) -> WarningKind
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 moreimpl Copy for WarningKind
Source§impl Debug for WarningKind
impl Debug for WarningKind
impl Eq for WarningKind
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnsafeUnpin for WarningKind
impl UnwindSafe for WarningKind
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