Trait rquickjs_core::IntoJs
source · pub trait IntoJs<'js> {
// Required method
fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>>;
}
Expand description
For converting rust values to javascript values
Required Methods§
Implementations on Foreign Types§
source§impl<'js, K, V, S> IntoJs<'js> for IndexMap<K, V, S>where
K: IntoAtom<'js>,
V: IntoJs<'js>,
Available on crate feature indexmap
only.
impl<'js, K, V, S> IntoJs<'js> for IndexMap<K, V, S>where K: IntoAtom<'js>, V: IntoJs<'js>,
indexmap
only.Convert from Rust index map to JS object
source§impl<'js, L, R> IntoJs<'js> for Either<L, R>where
L: IntoJs<'js>,
R: IntoJs<'js>,
Available on crate feature either
only.
impl<'js, L, R> IntoJs<'js> for Either<L, R>where L: IntoJs<'js>, R: IntoJs<'js>,
either
only.Convert the either into JS
source§impl<'js> IntoJs<'js> for SystemTime
impl<'js> IntoJs<'js> for SystemTime
source§impl<'js, T> IntoJs<'js> for &LinkedList<T>where
for<'a> &'a T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for &LinkedList<T>where for<'a> &'a T: IntoJs<'js>,
Convert from Rust linked list to JS array
source§impl<'js, K, V, S> IntoJs<'js> for &IndexMap<K, V, S>where
for<'a> &'a K: IntoAtom<'js>,
for<'a> &'a V: IntoJs<'js>,
Available on crate feature indexmap
only.
impl<'js, K, V, S> IntoJs<'js> for &IndexMap<K, V, S>where for<'a> &'a K: IntoAtom<'js>, for<'a> &'a V: IntoJs<'js>,
indexmap
only.Convert from Rust index map to JS object
source§impl<'js, T, S> IntoJs<'js> for HashSet<T, S>where
T: IntoJs<'js>,
impl<'js, T, S> IntoJs<'js> for HashSet<T, S>where T: IntoJs<'js>,
Convert from Rust hash set to JS array
source§impl<'js, K, V> IntoJs<'js> for BTreeMap<K, V>where
K: IntoAtom<'js>,
V: IntoJs<'js>,
impl<'js, K, V> IntoJs<'js> for BTreeMap<K, V>where K: IntoAtom<'js>, V: IntoJs<'js>,
Convert from Rust btree map to JS object
source§impl<'js, K, V> IntoJs<'js> for &BTreeMap<K, V>where
for<'a> &'a K: IntoAtom<'js>,
for<'a> &'a V: IntoJs<'js>,
impl<'js, K, V> IntoJs<'js> for &BTreeMap<K, V>where for<'a> &'a K: IntoAtom<'js>, for<'a> &'a V: IntoJs<'js>,
Convert from Rust btree map to JS object
source§impl<'js, K, V, S> IntoJs<'js> for &HashMap<K, V, S>where
for<'a> &'a K: IntoAtom<'js>,
for<'a> &'a V: IntoJs<'js>,
impl<'js, K, V, S> IntoJs<'js> for &HashMap<K, V, S>where for<'a> &'a K: IntoAtom<'js>, for<'a> &'a V: IntoJs<'js>,
Convert from Rust hash map to JS object
source§impl<'js, L, R> IntoJs<'js> for &Either<L, R>where
for<'a> &'a L: IntoJs<'js>,
for<'a> &'a R: IntoJs<'js>,
Available on crate feature either
only.
impl<'js, L, R> IntoJs<'js> for &Either<L, R>where for<'a> &'a L: IntoJs<'js>, for<'a> &'a R: IntoJs<'js>,
either
only.Convert the either into JS
source§impl<'js, T, S> IntoJs<'js> for IndexSet<T, S>where
T: IntoJs<'js>,
Available on crate feature indexmap
only.
impl<'js, T, S> IntoJs<'js> for IndexSet<T, S>where T: IntoJs<'js>,
indexmap
only.Convert from Rust index set to JS array
source§impl<'js, K, V, S> IntoJs<'js> for HashMap<K, V, S>where
K: IntoAtom<'js>,
V: IntoJs<'js>,
impl<'js, K, V, S> IntoJs<'js> for HashMap<K, V, S>where K: IntoAtom<'js>, V: IntoJs<'js>,
Convert from Rust hash map to JS object
source§impl<'js, T> IntoJs<'js> for VecDeque<T>where
T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for VecDeque<T>where T: IntoJs<'js>,
Convert from Rust vector deque to JS array
source§impl<'js, T> IntoJs<'js> for &Vec<T>where
for<'a> &'a T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for &Vec<T>where for<'a> &'a T: IntoJs<'js>,
Convert from Rust vector to JS array
source§impl<'js, T, E> IntoJs<'js> for &StdResult<T, E>where
for<'a> &'a T: IntoJs<'js>,
for<'a> Error: From<&'a E>,
impl<'js, T, E> IntoJs<'js> for &StdResult<T, E>where for<'a> &'a T: IntoJs<'js>, for<'a> Error: From<&'a E>,
source§impl<'js, T, S> IntoJs<'js> for &HashSet<T, S>where
for<'a> &'a T: IntoJs<'js>,
impl<'js, T, S> IntoJs<'js> for &HashSet<T, S>where for<'a> &'a T: IntoJs<'js>,
Convert from Rust hash set to JS array
source§impl<'js, T> IntoJs<'js> for &VecDeque<T>where
for<'a> &'a T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for &VecDeque<T>where for<'a> &'a T: IntoJs<'js>,
Convert from Rust vector deque to JS array
source§impl<'js, T> IntoJs<'js> for BTreeSet<T>where
T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for BTreeSet<T>where T: IntoJs<'js>,
Convert from Rust btree set to JS array
source§impl<'js, T> IntoJs<'js> for &BTreeSet<T>where
for<'a> &'a T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for &BTreeSet<T>where for<'a> &'a T: IntoJs<'js>,
Convert from Rust btree set to JS array
source§impl<'js, T, S> IntoJs<'js> for &IndexSet<T, S>where
for<'a> &'a T: IntoJs<'js>,
Available on crate feature indexmap
only.
impl<'js, T, S> IntoJs<'js> for &IndexSet<T, S>where for<'a> &'a T: IntoJs<'js>,
indexmap
only.Convert from Rust index set to JS array
source§impl<'js, T> IntoJs<'js> for LinkedList<T>where
T: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for LinkedList<T>where T: IntoJs<'js>,
Convert from Rust linked list to JS array
Implementors§
impl<'js> IntoJs<'js> for &Value<'js>
impl<'js> IntoJs<'js> for Array<'js>
impl<'js> IntoJs<'js> for Constructor<'js>
impl<'js> IntoJs<'js> for Function<'js>
impl<'js> IntoJs<'js> for Object<'js>
impl<'js> IntoJs<'js> for ArrayBuffer<'js>
impl<'js> IntoJs<'js> for BigInt<'js>
impl<'js> IntoJs<'js> for Exception<'js>
impl<'js> IntoJs<'js> for Null
impl<'js> IntoJs<'js> for String<'js>
impl<'js> IntoJs<'js> for Symbol<'js>
impl<'js> IntoJs<'js> for Undefined
impl<'js> IntoJs<'js> for Value<'js>
impl<'js, A> IntoJs<'js> for List<(A,)>where A: IntoJs<'js>,
impl<'js, A, B> IntoJs<'js> for List<(A, B)>where A: IntoJs<'js>, B: IntoJs<'js>,
impl<'js, A, B, C> IntoJs<'js> for List<(A, B, C)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>,
impl<'js, A, B, C, D> IntoJs<'js> for List<(A, B, C, D)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>,
impl<'js, A, B, C, D, E> IntoJs<'js> for List<(A, B, C, D, E)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>,
impl<'js, A, B, C, D, E, F> IntoJs<'js> for List<(A, B, C, D, E, F)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G> IntoJs<'js> for List<(A, B, C, D, E, F, G)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H> IntoJs<'js> for List<(A, B, C, D, E, F, G, H)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J, K> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J, K, L> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>, N: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>, N: IntoJs<'js>, O: IntoJs<'js>,
impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> IntoJs<'js> for List<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>where A: IntoJs<'js>, B: IntoJs<'js>, C: IntoJs<'js>, D: IntoJs<'js>, E: IntoJs<'js>, F: IntoJs<'js>, G: IntoJs<'js>, H: IntoJs<'js>, I: IntoJs<'js>, J: IntoJs<'js>, K: IntoJs<'js>, L: IntoJs<'js>, M: IntoJs<'js>, N: IntoJs<'js>, O: IntoJs<'js>, P: IntoJs<'js>,
impl<'js, C: JsClass<'js>> IntoJs<'js> for Class<'js, C>
impl<'js, T> IntoJs<'js> for Persistent<T>where T: Outlive<'static>, T::Target<'js>: IntoJs<'js>,
impl<'js, T> IntoJs<'js> for TypedArray<'js, T>
impl<'js, T, P> IntoJs<'js> for Func<T, P>where T: IntoJsFunc<'js, P> + 'js,
impl<'js, T, R> IntoJs<'js> for Promised<T>where T: Future<Output = R> + 'js, R: IntoJs<'js> + 'js,
futures
only.