pub struct ExprResult {
pub value: Option<String>,
pub diags: Vec<Diag>,
pub error: Option<(Option<String>, String)>,
}Expand description
an expression evaluated in the session
Fields§
§value: Option<String>its value as JSON, when it has one
diags: Vec<Diag>the diagnostics it raised
error: Option<(Option<String>, String)>Some(code, message): a failure; an empty message prints only (invalid)
Auto Trait Implementations§
impl Freeze for ExprResult
impl RefUnwindSafe for ExprResult
impl Send for ExprResult
impl Sync for ExprResult
impl Unpin for ExprResult
impl UnsafeUnpin for ExprResult
impl UnwindSafe for ExprResult
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