#[non_exhaustive]pub enum IssueKind {
Unknown,
Retired,
Custom(String),
}Expand description
The kind of an Issue.
#[non_exhaustive]: new failure kinds get their own variant as the crate
grows, so a match needs a _ arm. IssueKind::Custom already carries
anything an embedder defines.
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.
Unknown
Not a member of the vocabulary.
Retired
A member, but retired.
Custom(String)
An embedder-defined issue (a dangling reference, a range violation, …), carrying its own rendered message.
Trait Implementations§
impl Eq for IssueKind
impl StructuralPartialEq for IssueKind
Auto Trait Implementations§
impl Freeze for IssueKind
impl RefUnwindSafe for IssueKind
impl Send for IssueKind
impl Sync for IssueKind
impl Unpin for IssueKind
impl UnsafeUnpin for IssueKind
impl UnwindSafe for IssueKind
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