#[non_exhaustive]pub enum TransformResult {
Unchanged,
Replace(Box<DiffNode>),
ReplaceMany(Vec<DiffNode>),
Remove,
}Expand description
Result of a transformer’s transform operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unchanged
Node unchanged — zero cost.
Replace(Box<DiffNode>)
Replace this node with a new one.
ReplaceMany(Vec<DiffNode>)
Replace this node with multiple sibling nodes.
Remove
Remove this node entirely.
Auto Trait Implementations§
impl Freeze for TransformResult
impl RefUnwindSafe for TransformResult
impl Send for TransformResult
impl Sync for TransformResult
impl Unpin for TransformResult
impl UnsafeUnpin for TransformResult
impl UnwindSafe for TransformResult
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