Struct rhai::FnCallExpr[][src]

pub struct FnCallExpr {
    pub hash: FnCallHash,
    pub capture: bool,
    pub args: StaticVec<Expr>,
    pub constant_args: SmallVec<[(Dynamic, Position); 2]>,
    pub namespace: Option<NamespaceRef>,
    pub name: Identifier,
}

(INTERNALS) A function call. Exported under the internals feature only.

Volatile Data Structure

This type is volatile and may change.

Fields

hash: FnCallHash

Pre-calculated hash.

capture: bool

Does this function call capture the parent scope?

args: StaticVec<Expr>

List of function call argument expressions.

constant_args: SmallVec<[(Dynamic, Position); 2]>

List of function call arguments that are constants.

namespace: Option<NamespaceRef>

Namespace of the function, if any. Boxed because it occurs rarely.

name: Identifier

Function name.

Implementations

impl FnCallExpr[src]

pub fn is_args_empty(&self) -> bool[src]

Are there no arguments to this function call?

pub fn num_args(&self) -> usize[src]

Get the number of arguments to this function call.

Trait Implementations

impl Clone for FnCallExpr[src]

impl Debug for FnCallExpr[src]

impl Default for FnCallExpr[src]

impl Hash for FnCallExpr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.