Struct rhai::FnCallExpr
source · pub struct FnCallExpr {
pub namespace: Namespace,
pub name: ImmutableString,
pub hashes: FnCallHashes,
pub args: SmallVec<[Expr; 5]>,
pub capture_parent_scope: bool,
pub op_token: Option<Token>,
}
Expand description
(internals) A function call.
Exported under the internals
feature only.
Fields§
§namespace: Namespace
Namespace of the function, if any.
name: ImmutableString
Function name.
hashes: FnCallHashes
Pre-calculated hashes.
args: SmallVec<[Expr; 5]>
List of function call argument expressions.
capture_parent_scope: bool
Does this function call capture the parent scope?
op_token: Option<Token>
Is this function call a native operator?
Implementations§
source§impl FnCallExpr
impl FnCallExpr
sourcepub fn is_qualified(&self) -> bool
pub fn is_qualified(&self) -> bool
Does this function call contain a qualified namespace?
Always false
under no_module
.
sourcepub fn into_fn_call_expr(self, pos: Position) -> Expr
pub fn into_fn_call_expr(self, pos: Position) -> Expr
Convert this into an Expr::FnCall
.
sourcepub fn constant_args(&self) -> bool
pub fn constant_args(&self) -> bool
Are all arguments constant?
Trait Implementations§
source§impl Clone for FnCallExpr
impl Clone for FnCallExpr
source§fn clone(&self) -> FnCallExpr
fn clone(&self) -> FnCallExpr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more