pub struct ErrorRecovery {
pub failed_expression: String,
pub error_message: String,
pub position: Option<(usize, usize)>,
pub options: Vec<RecoveryOption>,
pub completions: Vec<String>,
pub error_checkpoint: Checkpoint,
}Expand description
Error recovery context with available options
Fields§
§failed_expression: StringThe original failed expression
error_message: StringThe error that occurred
position: Option<(usize, usize)>Line and column where error occurred
options: Vec<RecoveryOption>Available recovery options for this error type
completions: Vec<String>Suggested completions if applicable
error_checkpoint: CheckpointCheckpoint at time of error for recovery
Trait Implementations§
Source§impl Clone for ErrorRecovery
impl Clone for ErrorRecovery
Source§fn clone(&self) -> ErrorRecovery
fn clone(&self) -> ErrorRecovery
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 moreAuto Trait Implementations§
impl Freeze for ErrorRecovery
impl RefUnwindSafe for ErrorRecovery
impl Send for ErrorRecovery
impl Sync for ErrorRecovery
impl Unpin for ErrorRecovery
impl UnwindSafe for ErrorRecovery
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