Expand description
A group of often used types.
Re-exports§
pub use crate::context::Ctx;pub use crate::convert::Coerced;pub use crate::convert::FromAtom;pub use crate::convert::FromIteratorJs;pub use crate::convert::FromJs;pub use crate::convert::IntoAtom;pub use crate::convert::IntoJs;pub use crate::convert::IteratorJs;pub use crate::convert::List;pub use crate::function::Exhaustive;pub use crate::function::Flat;pub use crate::function::Func;pub use crate::function::FuncArg;pub use crate::function::IntoArg;pub use crate::function::IntoArgs;pub use crate::function::MutFn;pub use crate::function::OnceFn;pub use crate::function::Opt;pub use crate::function::Rest;pub use crate::function::This;pub use crate::result::CatchResultExt;pub use crate::result::ThrowResultExt;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