pub enum ExhaustivenessResult {
Exhaustive,
NonExhaustive {
enum_name: String,
missing_variants: Vec<String>,
},
TriviallyExhaustive,
NotApplicable,
}Expand description
Result of exhaustiveness checking
Variants§
Exhaustive
Match is exhaustive (all cases covered)
NonExhaustive
Match is non-exhaustive (missing variants)
TriviallyExhaustive
Match is trivially exhaustive (has wildcard or catch-all pattern)
NotApplicable
Scrutinee is not an enum type (exhaustiveness not applicable)
Implementations§
Trait Implementations§
Source§impl Clone for ExhaustivenessResult
impl Clone for ExhaustivenessResult
Source§fn clone(&self) -> ExhaustivenessResult
fn clone(&self) -> ExhaustivenessResult
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 moreSource§impl Debug for ExhaustivenessResult
impl Debug for ExhaustivenessResult
Source§impl PartialEq for ExhaustivenessResult
impl PartialEq for ExhaustivenessResult
Source§fn eq(&self, other: &ExhaustivenessResult) -> bool
fn eq(&self, other: &ExhaustivenessResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExhaustivenessResult
Auto Trait Implementations§
impl Freeze for ExhaustivenessResult
impl RefUnwindSafe for ExhaustivenessResult
impl Send for ExhaustivenessResult
impl Sync for ExhaustivenessResult
impl Unpin for ExhaustivenessResult
impl UnsafeUnpin for ExhaustivenessResult
impl UnwindSafe for ExhaustivenessResult
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