#[non_exhaustive]pub enum WarningKind {
Conflict,
UnknownAction,
PrefixShadow,
EmptySequence,
SequenceShadow,
}Expand description
A category tag for a Warning, without the field data.
Useful for filtering or routing warnings without pattern-matching on the full
variant: warning.kind() == WarningKind::Conflict tests the category in one
comparison, even when you do not need the chord or contender details.
This is #[non_exhaustive] — new Warning variants will add corresponding
WarningKind variants in a non-breaking additive release.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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 Hash for WarningKind
impl Hash for WarningKind
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
Source§fn eq(&self, other: &WarningKind) -> bool
fn eq(&self, other: &WarningKind) -> bool
Tests for
self and other values to be equal, and is used by ==.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.