Struct rhai::CustomExpr [−][src]
pub struct CustomExpr(pub StaticVec<Expr>, pub Rc<dyn Fn(&mut Scope<'_>, &mut EvalContext<'_, '_, '_, '_, '_, '_>, &[Expression<'_>]) -> Result<Dynamic, Box<EvalAltResult>>>);
Expand description
[INTERNALS] A type wrapping a custom syntax definition.
Exported under the internals
feature only.
WARNING
This type is volatile and may change.
Tuple Fields
0: StaticVec<Expr>
1: Rc<dyn Fn(&mut Scope<'_>, &mut EvalContext<'_, '_, '_, '_, '_, '_>, &[Expression<'_>]) -> Result<Dynamic, Box<EvalAltResult>>>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CustomExpr
impl !Send for CustomExpr
impl !Sync for CustomExpr
impl Unpin for CustomExpr
impl !UnwindSafe for CustomExpr
Blanket Implementations
Mutably borrows from an owned value. Read more