pub struct EvalError {
pub msg: String,
pub info: Option<Box<Diagnostic>>,
}Expand description
An evaluation error. info carries the structured diagnostic when the
failure site had one at hand (a deferred-parse error’s full Diagnostic,
or a place reference’s span); bindings surface it without re-deriving
positions from the message.
Fields§
§msg: String§info: Option<Box<Diagnostic>>Trait Implementations§
impl StructuralPartialEq for EvalError
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
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