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.
- Param
Requirement - A struct encoding the requirements of a parameter set.
- Params
- A struct which contains the values a callback is called with.
- Params
Accessor - Accessor to parameters used for retrieving arguments in order one at the time.
- Rest
- Helper type for rest and spread arguments.
- Rust
Function - 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§
- From
Param - A trait to extract argument values.
- From
Params - A trait to extract a tuple of argument values.
- IntoArg
- A trait for converting values into arguments.
- Into
Args - A trait for converting a tuple of values into a list arguments.
- Into
JsFunc - A trait for converting a Rust function to a JavaScript function.
- Static
JsFunction - A trait for functions callable from JavaScript but static, Used for implementing callable objects.