#[non_exhaustive]pub struct MutationResult {
pub source: String,
pub affected_nodes: Vec<NodeRef>,
}Expand description
Result of a mutation operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: StringThe modified source text.
affected_nodes: Vec<NodeRef>Updated node references for nodes affected by the mutation. After a mutation, previous node refs are stale — use these instead.
Trait Implementations§
Source§impl Clone for MutationResult
impl Clone for MutationResult
Source§fn clone(&self) -> MutationResult
fn clone(&self) -> MutationResult
Returns a duplicate of the value. Read more
1.0.0 · 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 MutationResult
impl Debug for MutationResult
Auto Trait Implementations§
impl Freeze for MutationResult
impl RefUnwindSafe for MutationResult
impl Send for MutationResult
impl Sync for MutationResult
impl Unpin for MutationResult
impl UnsafeUnpin for MutationResult
impl UnwindSafe for MutationResult
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