pub struct ReplResult {
pub ok: bool,
pub value: Option<StateValue>,
pub console: Vec<String>,
pub error: Option<MonacoDiagnostic>,
}Expand description
the result of one REPL evaluation. read by the playground’s REPL console.
derives serde::Serialize so the WASM bridge hands it straight to JS.
Fields§
§ok: booltrue when the line compiled and evaluated, false on any error.
value: Option<StateValue>the evaluated line’s value, rendered and type-tagged; Some on
success, None on an error.
console: Vec<String>the persistent REPL console output, accumulated across every prior REPL call.
error: Option<MonacoDiagnostic>the error diagnostic; Some on a failed line, None otherwise.
Trait Implementations§
Source§impl Clone for ReplResult
impl Clone for ReplResult
Source§fn clone(&self) -> ReplResult
fn clone(&self) -> ReplResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReplResult
impl Debug for ReplResult
Auto Trait Implementations§
impl Freeze for ReplResult
impl RefUnwindSafe for ReplResult
impl Send for ReplResult
impl Sync for ReplResult
impl Unpin for ReplResult
impl UnsafeUnpin for ReplResult
impl UnwindSafe for ReplResult
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