pub enum Usefulness {
Useful(Vec<Span>),
Redundant,
}Expand description
Indicates whether or not a given arm is useful.
Variants§
Useful(Vec<Span>)
The arm is useful. This additionally carries a set of or-pattern branches that have been found to be redundant despite the overall arm being useful. Used only in the presence of or-patterns, otherwise it stays empty.
Redundant
The arm is redundant and can be removed without changing the behavior of the match expression.
Trait Implementations§
source§impl Clone for Usefulness
impl Clone for Usefulness
source§fn clone(&self) -> Usefulness
fn clone(&self) -> Usefulness
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Usefulness
impl Send for Usefulness
impl Sync for Usefulness
impl Unpin for Usefulness
impl UnwindSafe for Usefulness
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Useful: 24 bytesRedundant: 0 bytes