Struct rhai::FnPtr [−][src]
pub struct FnPtr(_, _);Expand description
A general function pointer, which may carry additional (i.e. curried) argument values to be passed onto a function during a call.
Implementations
Get the curried arguments.
Call the function pointer with curried arguments (if any).
If this function is a script-defined function, it must not be marked private.
WARNING
All the arguments are consumed, meaning that they’re replaced by ().
This is to avoid unnecessarily cloning the arguments.
Do not use the arguments after this call. If they are needed afterwards,
clone them before calling this function.
Trait Implementations
type Error = Box<EvalAltResult>
type Error = Box<EvalAltResult>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FnPtr
impl !UnwindSafe for FnPtr
Blanket Implementations
Mutably borrows from an owned value. Read more