pub struct AddMatchArmMutation {
pub function_id: SymbolId,
pub enum_name: String,
pub pattern: String,
pub body: String,
}Expand description
Add a match arm to an existing match expression in a function
Fields§
§function_id: SymbolIdTarget function SymbolId
enum_name: StringEnum name to identify the target match expression
pattern: StringPattern string (e.g., “Status::Cancelled”)
body: StringBody string (e.g., “todo!()”)
Implementations§
Trait Implementations§
Source§impl Clone for AddMatchArmMutation
impl Clone for AddMatchArmMutation
Source§fn clone(&self) -> AddMatchArmMutation
fn clone(&self) -> AddMatchArmMutation
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 AddMatchArmMutation
impl Debug for AddMatchArmMutation
Source§impl Mutation for AddMatchArmMutation
impl Mutation for AddMatchArmMutation
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
Source§impl ToSerializable for AddMatchArmMutation
impl ToSerializable for AddMatchArmMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for AddMatchArmMutation
impl RefUnwindSafe for AddMatchArmMutation
impl Send for AddMatchArmMutation
impl Sync for AddMatchArmMutation
impl Unpin for AddMatchArmMutation
impl UnsafeUnpin for AddMatchArmMutation
impl UnwindSafe for AddMatchArmMutation
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