pub enum ImpactLevel {
Local = 1,
Reference = 2,
Structural = 3,
Semantic = 4,
}Expand description
Impact level classification.
Determines how far-reaching a mutation’s effects are.
Variants§
Local = 1
Level 1: Changes only affect the same file. Example: Expression transformations, local refactoring.
Reference = 2
Level 2: Changes affect references from other files. Example: Rename symbol, remove public item.
Structural = 3
Level 3: Changes affect type structure. Example: Add/remove field, add/remove variant.
Semantic = 4
Level 4: Changes affect type semantics or behavior. Example: Add derive(Copy), change visibility.
Implementations§
Source§impl ImpactLevel
impl ImpactLevel
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Returns a human-readable description of the impact level.
Trait Implementations§
Source§impl Clone for ImpactLevel
impl Clone for ImpactLevel
Source§fn clone(&self) -> ImpactLevel
fn clone(&self) -> ImpactLevel
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 ImpactLevel
impl Debug for ImpactLevel
Source§impl Hash for ImpactLevel
impl Hash for ImpactLevel
Source§impl Ord for ImpactLevel
impl Ord for ImpactLevel
Source§fn cmp(&self, other: &ImpactLevel) -> Ordering
fn cmp(&self, other: &ImpactLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImpactLevel
impl PartialEq for ImpactLevel
Source§fn eq(&self, other: &ImpactLevel) -> bool
fn eq(&self, other: &ImpactLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ImpactLevel
impl PartialOrd for ImpactLevel
impl Copy for ImpactLevel
impl Eq for ImpactLevel
impl StructuralPartialEq for ImpactLevel
Auto Trait Implementations§
impl Freeze for ImpactLevel
impl RefUnwindSafe for ImpactLevel
impl Send for ImpactLevel
impl Sync for ImpactLevel
impl Unpin for ImpactLevel
impl UnsafeUnpin for ImpactLevel
impl UnwindSafe for ImpactLevel
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more