pub struct AddImplMutation {
pub parent: SymbolId,
pub target: String,
pub trait_name: Option<String>,
}Expand description
Add an impl block for a type
Fields§
§parent: SymbolIdParent module SymbolId
target: String§trait_name: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for AddImplMutation
impl Clone for AddImplMutation
Source§fn clone(&self) -> AddImplMutation
fn clone(&self) -> AddImplMutation
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 AddImplMutation
impl Debug for AddImplMutation
Source§impl Mutation for AddImplMutation
impl Mutation for AddImplMutation
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 AddImplMutation
impl ToSerializable for AddImplMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for AddImplMutation
impl RefUnwindSafe for AddImplMutation
impl Send for AddImplMutation
impl Sync for AddImplMutation
impl Unpin for AddImplMutation
impl UnsafeUnpin for AddImplMutation
impl UnwindSafe for AddImplMutation
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