pub enum OperationError {
TypeMismatch {
expected: ExpectedType,
actual: String,
context: String,
},
NodeNotFound {
node: NodeId,
},
SlotOccupied {
node: NodeId,
current_occupant: String,
},
ConstraintViolation {
violated_constraints: Vec<ViolationDetail>,
},
InvalidOperation {
action: String,
reason: String,
},
}Expand description
Errors that can occur when applying operations.
Variants§
TypeMismatch
Type mismatch between expected and actual.
NodeNotFound
Target node not found in the AST.
SlotOccupied
Slot is already occupied.
ConstraintViolation
One or more constraints were violated.
Fields
§
violated_constraints: Vec<ViolationDetail>InvalidOperation
The operation is invalid for the given context.
Trait Implementations§
Source§impl Clone for OperationError
impl Clone for OperationError
Source§fn clone(&self) -> OperationError
fn clone(&self) -> OperationError
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 OperationError
impl Debug for OperationError
Source§impl PartialEq for OperationError
impl PartialEq for OperationError
impl StructuralPartialEq for OperationError
Auto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnsafeUnpin for OperationError
impl UnwindSafe for OperationError
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