Enum netidx_bscript::vm::Node
source · [−]pub enum Node<C: Ctx, E> {
Error(Expr, Value),
Constant(Expr, Value),
Apply {
spec: Expr,
args: Vec<Node<C, E>>,
function: Box<dyn Apply<C, E> + Send + Sync>,
},
}
Variants
Error(Expr, Value)
Constant(Expr, Value)
Apply
Implementations
sourceimpl<C: Ctx, E> Node<C, E>
impl<C: Ctx, E> Node<C, E>
pub fn compile_int(
ctx: &mut ExecCtx<C, E>,
spec: Expr,
scope: Path,
top_id: ExprId
) -> Self
pub fn compile(ctx: &mut ExecCtx<C, E>, scope: Path, spec: Expr) -> Self
pub fn current(&self) -> Option<Value>
pub fn update(
&mut self,
ctx: &mut ExecCtx<C, E>,
event: &Event<E>
) -> Option<Value>
Trait Implementations
Auto Trait Implementations
impl<C, E> !RefUnwindSafe for Node<C, E>
impl<C, E> Send for Node<C, E>
impl<C, E> Sync for Node<C, E>
impl<C, E> Unpin for Node<C, E>
impl<C, E> !UnwindSafe for Node<C, E>
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