pub enum ArithOp {
Add,
Sub,
Mul,
Div,
Rem,
BitAnd,
BitOr,
BitXor,
Shl,
Shr,
}Variants§
Implementations§
Source§impl ArithOp
impl ArithOp
pub const ALL: [ArithOp; 10]
pub fn symbol(self) -> &'static str
Sourcepub fn swapped2(self) -> Option<ArithOp>
pub fn swapped2(self) -> Option<ArithOp>
The second operator a mutant uses instead. The shifts have none.
Sourcepub fn second(self, assign: bool) -> Option<ArithOp>
pub fn second(self, assign: bool) -> Option<ArithOp>
The second replacement where the operator is written as an assignment or not.
Bits collected with |= from zero are the same bits with ^=, and &= with
^= is rarely a slip of the pen: as in cargo-mutants, those two are left out.
Sourcepub fn is_bitwise(self) -> bool
pub fn is_bitwise(self) -> bool
Bit operators exist for integers only, the others for floats too.
Trait Implementations§
impl Copy for ArithOp
impl Eq for ArithOp
impl StructuralPartialEq for ArithOp
Auto Trait Implementations§
impl Forget for ArithOp
impl Freeze for ArithOp
impl Move for ArithOp
impl RefUnwindSafe for ArithOp
impl Send for ArithOp
impl Sync for ArithOp
impl Unpin for ArithOp
impl UnsafeUnpin for ArithOp
impl UnwindSafe for ArithOp
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.