pub enum MutationOperators {
Show 15 variants
ArithmeticReplacementOperator,
UnaryRemovalOperator,
LogicalReplacementOperator,
RelationalReplacementOperator,
AssignmentReplacementOperator,
UnaryReplacementOperator,
NotNullAssertionOperator,
ElvisRemoveOperator,
ElvisLiteralChangeOperator,
LiteralChangeOperator,
ExceptionChangeOperator,
WhenRemoveBranchOperator,
RemoveLabelOperator,
FunctionalBinaryReplacementOperator,
FunctionalReplacementOperator,
}Variants§
ArithmeticReplacementOperator
Replaces an arithmetic operator with a different arithmetic operator
UnaryRemovalOperator
Removes a unary operator
LogicalReplacementOperator
Replaces a logical operator with a different logical operator
RelationalReplacementOperator
Replaces a relational operator with a different relational operator
AssignmentReplacementOperator
Replaces an assignment operator with a different assignment operator
UnaryReplacementOperator
Replaces a unary operator with a different unary operator
NotNullAssertionOperator
Replaces a not null assertion operator with a different not null assertion operator
ElvisRemoveOperator
Removes an elvis operator
ElvisLiteralChangeOperator
Changes the literal of an elvis operator
LiteralChangeOperator
Changes the literal of a literal
ExceptionChangeOperator
Changes the exception thrown
WhenRemoveBranchOperator
Removes a branch from the when statement if the statement has more than one branch
RemoveLabelOperator
Removes a label when continuing, breaking, or returning
FunctionalBinaryReplacementOperator
Changes first() to last() and vice versa or find() to findLast() and vice versa
FunctionalReplacementOperator
Changes Any() to All() or None() and vice versa or ForEach() to Map() or Filter() and vice versa
Implementations§
Trait Implementations§
Source§impl Clone for MutationOperators
impl Clone for MutationOperators
Source§fn clone(&self) -> MutationOperators
fn clone(&self) -> MutationOperators
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MutationOperators
impl Debug for MutationOperators
Source§impl<'de> Deserialize<'de> for MutationOperators
impl<'de> Deserialize<'de> for MutationOperators
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for MutationOperators
impl Display for MutationOperators
Source§impl Ord for MutationOperators
impl Ord for MutationOperators
Source§fn cmp(&self, other: &MutationOperators) -> Ordering
fn cmp(&self, other: &MutationOperators) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MutationOperators
impl PartialEq for MutationOperators
Source§impl PartialOrd for MutationOperators
impl PartialOrd for MutationOperators
Source§impl Serialize for MutationOperators
impl Serialize for MutationOperators
impl Eq for MutationOperators
impl StructuralPartialEq for MutationOperators
Auto Trait Implementations§
impl Freeze for MutationOperators
impl RefUnwindSafe for MutationOperators
impl Send for MutationOperators
impl Sync for MutationOperators
impl Unpin for MutationOperators
impl UnwindSafe for MutationOperators
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
Source§impl<T> Cell for Twhere
T: Display,
impl<T> Cell for Twhere
T: Display,
Source§fn cell(self) -> CellStruct
fn cell(self) -> CellStruct
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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