pub struct RemoveMethodMutation {
pub method_id: SymbolId,
}Expand description
Remove a method from a struct or enum
New design: Methods are registered directly on the type (e.g., Struct::method).
Fields§
§method_id: SymbolIdSymbolId for the method itself (Type::method)
Implementations§
Trait Implementations§
Source§impl Clone for RemoveMethodMutation
impl Clone for RemoveMethodMutation
Source§fn clone(&self) -> RemoveMethodMutation
fn clone(&self) -> RemoveMethodMutation
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 RemoveMethodMutation
impl Debug for RemoveMethodMutation
Source§impl Mutation for RemoveMethodMutation
impl Mutation for RemoveMethodMutation
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 RemoveMethodMutation
impl RefUnwindSafe for RemoveMethodMutation
impl Send for RemoveMethodMutation
impl Sync for RemoveMethodMutation
impl Unpin for RemoveMethodMutation
impl UnsafeUnpin for RemoveMethodMutation
impl UnwindSafe for RemoveMethodMutation
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