Module function

Source
Expand description

JavaScript function functionality

Structs§

Args
Argument input for a functions
Async
Helper type for creating a function from a closure which returns a future.
Constructor
A function which can be used as a constructor.
Exhaustive
Helper type for making an parameter set exhaustive.
Flat
A type to flatten tuples into another tuple.
Func
Helper type to implement IntoJsFunc for closure by constraining arguments.
FuncArg
helper type for retrieving function object on which a function is called..
Function
A JavaScript function.
MutFn
Helper type for creating a function from a closure which implements FnMut
Null
Helper type for converting an option into null instead of undefined.
OnceFn
Helper type for creating a function from a closure which implements FnMut
Opt
Helper type for optional parameters.
ParamRequirement
A struct encoding the requirements of a parameter set.
Params
A struct which contains the values a callback is called with.
ParamsAccessor
Accessor to parameters used for retrieving arguments in order one at the time.
Rest
Helper type for rest and spread arguments.
RustFunction
The class used for wrapping closures, rquickjs implements callbacks by creating an instances of this class.
This
helper type for working setting and retrieving this values.

Traits§

FromParam
A trait to extract argument values.
FromParams
A trait to extract a tuple of argument values.
IntoArg
A trait for converting values into arguments.
IntoArgs
A trait for converting a tuple of values into a list arguments.
IntoJsFunc
A trait for converting a Rust function to a JavaScript function.
StaticJsFunction
A trait for functions callable from JavaScript but static, Used for implementing callable objects.