[−][src]Struct rhai::FnCallExpr
(INTERNALS) A function call.
Exported under the internals
feature only.
WARNING
This type is volatile and may change.
Fields
hash: u64
Pre-calculated hash for a script-defined function of the same name and number of parameters.
native_only: bool
Call native functions only? Set to true
to skip searching for script-defined function overrides
when it is certain that the function must be native (e.g. an operator).
capture: bool
Does this function call capture the parent scope?
def_value: Option<Dynamic>
Default value when the function is not found, mostly used to provide a default for comparison functions.
namespace: Option<Box<NamespaceRef>>
Namespace of the function, if any. Boxed because it occurs rarely.
name: Cow<'static, str>
Function name.
Use Cow<'static, str>
because a lot of operators (e.g. ==
, >=
) are implemented as
function calls and the function names are predictable, so no need to allocate a new String
.
args: StaticVec<Expr>
List of function call arguments.
Trait Implementations
impl Clone for FnCallExpr
[src]
pub fn clone(&self) -> FnCallExpr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FnCallExpr
[src]
impl Default for FnCallExpr
[src]
pub fn default() -> FnCallExpr
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,