pub struct Expression<Kind> { /* private fields */ }
Expand description
Compiled expression
Implementations§
Source§impl Expression<Standard>
impl Expression<Standard>
pub fn new_standard(bytecode: Arc<Vec<Opcode>>) -> Self
pub fn kind(&self) -> ExpressionKind
pub fn evaluate(&self, context: Variable) -> Result<Variable, IsolateError>
pub fn evaluate_with( &self, context: Variable, vm: &mut VM, ) -> Result<Variable, IsolateError>
Source§impl Expression<Unary>
impl Expression<Unary>
Trait Implementations§
Source§impl<Kind: Clone> Clone for Expression<Kind>
impl<Kind: Clone> Clone for Expression<Kind>
Source§fn clone(&self) -> Expression<Kind>
fn clone(&self) -> Expression<Kind>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Kind> Freeze for Expression<Kind>
impl<Kind> RefUnwindSafe for Expression<Kind>where
Kind: RefUnwindSafe,
impl<Kind> Send for Expression<Kind>where
Kind: Send,
impl<Kind> Sync for Expression<Kind>where
Kind: Sync,
impl<Kind> Unpin for Expression<Kind>where
Kind: Unpin,
impl<Kind> UnwindSafe for Expression<Kind>where
Kind: UnwindSafe,
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