Struct fasteval2::parser::Expression
source · [−]pub struct Expression { /* private fields */ }
Expand description
An Expression
is the top node of a parsed AST.
It can be compile()
d or eval()
d.
Trait Implementations
sourceimpl Compiler for Expression
impl Compiler for Expression
sourcefn compile(
&self,
pslab: &ParseSlab,
cslab: &mut CompileSlab,
ns: &mut impl EvalNamespace
) -> Instruction
fn compile(
&self,
pslab: &ParseSlab,
cslab: &mut CompileSlab,
ns: &mut impl EvalNamespace
) -> Instruction
Turns a parsed Expression
into a compiled Instruction
. Read more
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl Default for Expression
impl Default for Expression
sourceimpl Evaler for Expression
impl Evaler for Expression
sourceimpl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
sourcefn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Expression) -> bool
fn ne(&self, other: &Expression) -> bool
This method tests for !=
.
impl StructuralPartialEq for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more