Struct rhai::FnCallExpr
source · [−]pub struct FnCallExpr {
pub namespace: Namespace,
pub name: Identifier,
pub hashes: FnCallHashes,
pub args: StaticVec<Expr>,
pub capture_parent_scope: bool,
pub pos: Position,
}
Expand description
(internals) A function call.
Exported under the internals
feature only.
Fields
namespace: Namespace
Namespace of the function, if any.
name: Identifier
Function name.
hashes: FnCallHashes
Pre-calculated hashes.
args: StaticVec<Expr>
List of function call argument expressions.
capture_parent_scope: bool
Does this function call capture the parent scope?
pos: Position
Position of the function name.
Implementations
sourceimpl 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
.
Trait Implementations
sourceimpl Clone for FnCallExpr
impl Clone for FnCallExpr
sourcefn clone(&self) -> FnCallExpr
fn clone(&self) -> FnCallExpr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FnCallExpr
impl Debug for FnCallExpr
sourceimpl Default for FnCallExpr
impl Default for FnCallExpr
sourcefn default() -> FnCallExpr
fn default() -> FnCallExpr
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
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
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more