pub struct ExtractTraitMutation {
pub symbol_id: SymbolId,
pub trait_name: String,
pub methods: Option<Vec<String>>,
}Expand description
Fields§
§symbol_id: SymbolIdSymbolId of the inherent impl block (required for O(1) lookup)
trait_name: StringName for the new trait
methods: Option<Vec<String>>Specific methods to extract (None = all methods)
Implementations§
Trait Implementations§
Source§impl Clone for ExtractTraitMutation
impl Clone for ExtractTraitMutation
Source§fn clone(&self) -> ExtractTraitMutation
fn clone(&self) -> ExtractTraitMutation
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 ExtractTraitMutation
impl Debug for ExtractTraitMutation
Source§impl Mutation for ExtractTraitMutation
impl Mutation for ExtractTraitMutation
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 ExtractTraitMutation
impl RefUnwindSafe for ExtractTraitMutation
impl Send for ExtractTraitMutation
impl Sync for ExtractTraitMutation
impl Unpin for ExtractTraitMutation
impl UnsafeUnpin for ExtractTraitMutation
impl UnwindSafe for ExtractTraitMutation
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