Expand description
A group of often used types.
Re-exports§
pub use crate::context::Ctx;pub use crate::JsLifetime;
Structs§
- Async
futures - Helper type for creating a function from a closure which returns a future.
- Coerced
- The wrapper for values to force coercion
- Exhaustive
- Helper type for making an parameter set exhaustive.
- Flat
- A type to flatten tuples into another tuple.
- Func
- Helper type to implement
IntoJsFuncfor closure by constraining arguments. - FuncArg
- helper type for retrieving function object on which a function is called..
- List
- A helper type for turning a tuple into a JavaScript array.
Implements
IntoJsandFromJsfor tuples of various lengths - MutFn
- Helper type for creating a function from a closure which implements
FnMut - OnceFn
- Helper type for creating a function from a closure which implements
FnMut - Opt
- Helper type for optional parameters.
- Promise
futures - A JavaScript promise.
- Promised
futures - Wrapper for futures to convert to JS promises
- Rest
- Helper type for rest and spread arguments.
- This
- helper type for working setting and retrieving
thisvalues.
Traits§
- Catch
Result Ext - Extension trait to easily turn results with
Errorinto results withCaughtError - From
Atom - Trait for converting values from atoms.
- From
Iterator Js - The Rust’s
FromIteratortrait to use withCtx - FromJs
- For converting JavaScript values to Rust values
- IntoArg
- A trait for converting values into arguments.
- Into
Args - A trait for converting a tuple of values into a list arguments.
- Into
Atom - Trait for converting values to atoms.
- IntoJs
- For converting Rust values to JavaScript values
- Iterator
Js - The Rust’s
Iteratortrait extension which works withCtx - Throw
Result Ext - Extension trait to easily turn results with
CaughtErrorinto results withError