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