pub struct EvalResult { /* private fields */ }Expand description
Opaque result of evaluating a Haskell expression.
Bundles the computed Value with the DataConTable needed to render constructor names.
Implementations§
Source§impl EvalResult
impl EvalResult
Sourcepub fn to_string_pretty(&self) -> String
pub fn to_string_pretty(&self) -> String
Pretty-print the JSON representation.
Sourcepub fn into_value(self) -> Value
pub fn into_value(self) -> Value
Consume and return the inner Value (escape hatch for callers that need raw access).
Sourcepub fn table(&self) -> &DataConTable
pub fn table(&self) -> &DataConTable
Borrow the DataConTable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EvalResult
impl RefUnwindSafe for EvalResult
impl Send for EvalResult
impl Sync for EvalResult
impl Unpin for EvalResult
impl UnsafeUnpin for EvalResult
impl UnwindSafe for EvalResult
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