pub struct SourceMutant {
pub start: usize,
pub end: usize,
pub replacement: String,
pub what: String,
pub into: String,
}Expand description
A mutant as a change of the source text: replacement in place of start..end.
Fields§
§start: usize§end: usize§replacement: String§what: StringWhat is replaced and by what, in the words of cargo-mutants: (<, ==),
(-, ``) for a deleted minus, (guard, true), (body, 0).
into: StringTrait Implementations§
Source§impl Clone for SourceMutant
impl Clone for SourceMutant
Source§impl Debug for SourceMutant
impl Debug for SourceMutant
impl Eq for SourceMutant
Source§impl PartialEq for SourceMutant
impl PartialEq for SourceMutant
impl StructuralPartialEq for SourceMutant
Auto Trait Implementations§
impl Forget for SourceMutant
impl Freeze for SourceMutant
impl Move for SourceMutant
impl RefUnwindSafe for SourceMutant
impl Send for SourceMutant
impl Sync for SourceMutant
impl Unpin for SourceMutant
impl UnsafeUnpin for SourceMutant
impl UnwindSafe for SourceMutant
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.