pub struct RemoveStatementMutation {
pub target_stmt: PureStmt,
pub pattern: String,
pub target_fn: SymbolId,
pub remove_all: bool,
}Expand description
Remove statements matching a target statement
Fields§
§target_stmt: PureStmtTarget statement to match and remove
pattern: StringOriginal pattern string for flexible matching (e.g., “println!(..)”)
target_fn: SymbolIdTarget function SymbolId
remove_all: boolRemove all occurrences (true) or just first (false)
Implementations§
Trait Implementations§
Source§impl Clone for RemoveStatementMutation
impl Clone for RemoveStatementMutation
Source§fn clone(&self) -> RemoveStatementMutation
fn clone(&self) -> RemoveStatementMutation
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 RemoveStatementMutation
impl Debug for RemoveStatementMutation
Source§impl Mutation for RemoveStatementMutation
impl Mutation for RemoveStatementMutation
Source§fn mutation_type(&self) -> &'static str
fn mutation_type(&self) -> &'static str
Get the mutation type name
Source§fn validate(&self, _file: &PureFile) -> ValidationResult
fn validate(&self, _file: &PureFile) -> ValidationResult
Validate the mutation before applying Read more
Source§fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
fn can_proceed(&self, file: &PureFile, strategy: ValidationStrategy) -> bool
Check if this mutation can proceed with the given strategy
Auto Trait Implementations§
impl Freeze for RemoveStatementMutation
impl RefUnwindSafe for RemoveStatementMutation
impl Send for RemoveStatementMutation
impl Sync for RemoveStatementMutation
impl Unpin for RemoveStatementMutation
impl UnsafeUnpin for RemoveStatementMutation
impl UnwindSafe for RemoveStatementMutation
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