pub struct ExceptionContext {
pub error_variable: Option<String>,
pub preferred_alternative: Option<String>,
}Expand description
Structured exception context for exception-family functions.
Used by code actions and semantic analysis to understand exception handling semantics — upgrade paths (die → croak) and associated error variables.
Fields§
§error_variable: Option<String>Special variable that captures the exception after an eval block (e.g. $@).
preferred_alternative: Option<String>Recommended replacement function, if the current function is not preferred
(e.g. die → Carp::croak, warn → Carp::carp).
Trait Implementations§
Source§impl Clone for ExceptionContext
impl Clone for ExceptionContext
Source§fn clone(&self) -> ExceptionContext
fn clone(&self) -> ExceptionContext
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 ExceptionContext
impl RefUnwindSafe for ExceptionContext
impl Send for ExceptionContext
impl Sync for ExceptionContext
impl Unpin for ExceptionContext
impl UnsafeUnpin for ExceptionContext
impl UnwindSafe for ExceptionContext
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