pub enum FlagClash {
Repeated,
Contradictory,
Redundant,
}Available on crate feature
cli only.Expand description
The type of clash between flags that a FlagWarning reports. The last
value still wins in every case.
The set is closed, and the enum is deliberately not #[non_exhaustive].
Two flags given together are the same flag, two names of one flag, or
opposites; no other relation between them exists.
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§
impl Copy for FlagClash
impl Eq for FlagClash
impl StructuralPartialEq for FlagClash
Auto Trait Implementations§
impl Forget for FlagClash
impl Freeze for FlagClash
impl Move for FlagClash
impl RefUnwindSafe for FlagClash
impl Send for FlagClash
impl Sync for FlagClash
impl Unpin for FlagClash
impl UnsafeUnpin for FlagClash
impl UnwindSafe for FlagClash
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