pub struct AddDeriveMutation {
pub symbol_id: SymbolId,
pub derives: Vec<String>,
}Expand description
Add a derive macro to a struct or enum
Uses SymbolId for O(1) lookup.
Fields§
§symbol_id: SymbolIdSymbolId of the target type (required)
derives: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for AddDeriveMutation
impl Clone for AddDeriveMutation
Source§fn clone(&self) -> AddDeriveMutation
fn clone(&self) -> AddDeriveMutation
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 AddDeriveMutation
impl Debug for AddDeriveMutation
Source§impl Mutation for AddDeriveMutation
impl Mutation for AddDeriveMutation
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 AddDeriveMutation
impl ToSerializable for AddDeriveMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for AddDeriveMutation
impl RefUnwindSafe for AddDeriveMutation
impl Send for AddDeriveMutation
impl Sync for AddDeriveMutation
impl Unpin for AddDeriveMutation
impl UnsafeUnpin for AddDeriveMutation
impl UnwindSafe for AddDeriveMutation
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