Struct quad_compat_rhai::FnCallExpr [−][src]
pub struct FnCallExpr {
pub namespace: Option<NamespaceRef>,
pub name: Identifier,
pub hashes: FnCallHashes,
pub args: StaticVec<Expr>,
pub constants: StaticVec<Dynamic>,
pub capture_parent_scope: bool,
}
Expand description
(internals) A function call.
Exported under the internals
feature only.
Fields
namespace: Option<NamespaceRef>
Namespace of the function, if any.
name: Identifier
Function name.
hashes: FnCallHashes
Pre-calculated hashes.
args: StaticVec<Expr>
List of function call argument expressions.
constants: StaticVec<Dynamic>
List of function call arguments that are constants.
Any arguments in args
that is Expr::Stack
indexes into this
array to find the constant for use as its argument value.
Notes
Constant arguments are very common in function calls, and keeping each constant in
an Expr::DynamicConstant
involves an additional allocation. Keeping the constant
values in an inlined array avoids these extra allocations.
capture_parent_scope: bool
Does this function call capture the parent scope?
Implementations
Does this function call contain a qualified namespace?
Convert this into an Expr::FnCall
.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FnCallExpr
impl !Send for FnCallExpr
impl !Sync for FnCallExpr
impl Unpin for FnCallExpr
impl !UnwindSafe for FnCallExpr
Blanket Implementations
Mutably borrows from an owned value. Read more