#[non_exhaustive]pub struct FlagWarning {
pub clash: FlagClash,
pub names: Vec<String>,
}Available on crate feature
cli only.Expand description
One flag clash. Its Display text is the sentence a warning line holds
after the {bin}: warning: prefix.
chassis_warnings builds them. A field can join the struct in a minor
release.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.clash: FlagClashThe type of clash.
names: Vec<String>The flags involved, spelled as in a warning (--color, --no-color).
Implementations§
Trait Implementations§
Source§impl Clone for FlagWarning
impl Clone for FlagWarning
Source§impl Debug for FlagWarning
impl Debug for FlagWarning
Source§impl Display for FlagWarning
impl Display for FlagWarning
impl Eq for FlagWarning
Source§impl PartialEq for FlagWarning
impl PartialEq for FlagWarning
impl StructuralPartialEq for FlagWarning
Auto Trait Implementations§
impl Forget for FlagWarning
impl Freeze for FlagWarning
impl RefUnwindSafe for FlagWarning
impl Send for FlagWarning
impl Sync for FlagWarning
impl Unpin for FlagWarning
impl UnsafeUnpin for FlagWarning
impl UnwindSafe for FlagWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more