pub struct RemoveTraitMutation {
pub trait_id: SymbolId,
}Expand description
Remove a trait from the file
Fields§
§trait_id: SymbolIdSymbolId of the trait to remove (required, O(1) access)
Implementations§
Trait Implementations§
Source§impl Clone for RemoveTraitMutation
impl Clone for RemoveTraitMutation
Source§fn clone(&self) -> RemoveTraitMutation
fn clone(&self) -> RemoveTraitMutation
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 RemoveTraitMutation
impl Debug for RemoveTraitMutation
Source§impl Mutation for RemoveTraitMutation
impl Mutation for RemoveTraitMutation
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 RemoveTraitMutation
impl ToSerializable for RemoveTraitMutation
fn to_serializable(&self) -> SerializableMutation
Auto Trait Implementations§
impl Freeze for RemoveTraitMutation
impl RefUnwindSafe for RemoveTraitMutation
impl Send for RemoveTraitMutation
impl Sync for RemoveTraitMutation
impl Unpin for RemoveTraitMutation
impl UnsafeUnpin for RemoveTraitMutation
impl UnwindSafe for RemoveTraitMutation
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