Module rquickjs_core::prelude
source · Expand description
A group of often used types.
Re-exports§
pub use crate::context::Ctx;
Structs§
- Async
futures
Helper type for creating a function from a closure which returns a future. - The wrapper for values to force coercion
- Helper type for making an parameter set exhaustive.
- A type to flatten tuples into another tuple.
- Helper type to implement
IntoJsFunc
for closure by constraining arguments. - helper type for retrieving function object on which a function is called..
- Helper type for creating a function from a closure which implements
FnMut
- Helper type for creating a function from a closure which implements
FnMut
- Helper type for optional parameters.
- Promise
futures
A JavaScript promise. - Promised
futures
Wrapper for futures to convert to JS promises - Helper type for rest and spread arguments.
- helper type for working setting and retrieving
this
values.
Traits§
- Extension trait to easily turn results with
Error
into results withCaughtError
- Trait for converting values from atoms.
- The Rust’s
FromIterator
trait to use withCtx
- For converting JavaScript values to Rust values
- A trait for converting values into arguments.
- A trait for converting a tuple of values into a list arguments.
- Trait for converting values to atoms.
- For converting Rust values to JavaScript values
- Extension trait to easily turn results with
CaughtError
into results withError