pub struct AddPureItemsMutation {
pub parent: SymbolId,
pub items: Vec<PureItem>,
}Expand description
Add multiple items directly from AST (no parsing overhead)
Unlike AddItemMutation which parses string content, this mutation takes pre-built PureItem AST nodes. Used by Duplicate operations to avoid AST → String → AST round-trips.
Fields§
§parent: SymbolIdParent module SymbolId where items should be added
items: Vec<PureItem>Pre-built AST items to add
Implementations§
Trait Implementations§
Source§impl Clone for AddPureItemsMutation
impl Clone for AddPureItemsMutation
Source§fn clone(&self) -> AddPureItemsMutation
fn clone(&self) -> AddPureItemsMutation
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 AddPureItemsMutation
impl Debug for AddPureItemsMutation
Source§impl Mutation for AddPureItemsMutation
impl Mutation for AddPureItemsMutation
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 AddPureItemsMutation
impl RefUnwindSafe for AddPureItemsMutation
impl Send for AddPureItemsMutation
impl Sync for AddPureItemsMutation
impl Unpin for AddPureItemsMutation
impl UnsafeUnpin for AddPureItemsMutation
impl UnwindSafe for AddPureItemsMutation
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