#[non_exhaustive]pub enum TransformOutcome {
Applied(CstDocument),
Blocked(BlockedReason),
}Expand description
The result of applying a StructuralOp.
#[non_exhaustive] so additional outcome arms can be added without a breaking
change.
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.
Applied(CstDocument)
The op applied; carries the new document (untouched regions byte-identical).
Blocked(BlockedReason)
The op was rejected; the input document is unchanged and no edit was made.
Trait Implementations§
Source§impl Clone for TransformOutcome
impl Clone for TransformOutcome
Source§fn clone(&self) -> TransformOutcome
fn clone(&self) -> TransformOutcome
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 moreAuto Trait Implementations§
impl Freeze for TransformOutcome
impl RefUnwindSafe for TransformOutcome
impl Send for TransformOutcome
impl Sync for TransformOutcome
impl Unpin for TransformOutcome
impl UnsafeUnpin for TransformOutcome
impl UnwindSafe for TransformOutcome
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