Enum numbat::InterpreterResult
source · pub enum InterpreterResult {
Value(Value),
Continue,
}
Variants§
Implementations§
source§impl InterpreterResult
impl InterpreterResult
pub fn to_markup( &self, evaluated_statement: Option<&Statement>, registry: &DimensionRegistry, with_type_info: bool, with_equal_sign: bool ) -> Markup
sourcepub fn is_continue(&self) -> bool
pub fn is_continue(&self) -> bool
Returns true
if the interpreter result is Continue
.
pub fn value_as_string(&self) -> Option<String>
Trait Implementations§
source§impl Debug for InterpreterResult
impl Debug for InterpreterResult
source§impl PartialEq for InterpreterResult
impl PartialEq for InterpreterResult
source§fn eq(&self, other: &InterpreterResult) -> bool
fn eq(&self, other: &InterpreterResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InterpreterResult
impl StructuralPartialEq for InterpreterResult
Auto Trait Implementations§
impl RefUnwindSafe for InterpreterResult
impl Send for InterpreterResult
impl Sync for InterpreterResult
impl Unpin for InterpreterResult
impl UnwindSafe for InterpreterResult
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