Trait rquickjs_core::IntoJs[][src]

pub trait IntoJs<'js> {
    fn into_js(self, ctx: Ctx<'js>) -> Result<Value<'js>>;
}

For converting rust values to javascript values

Required methods

fn into_js(self, ctx: Ctx<'js>) -> Result<Value<'js>>[src]

Loading content...

Implementations on Foreign Types

impl<'js> IntoJs<'js> for StdString[src]

impl<'js> IntoJs<'js> for &StdString[src]

impl<'js> IntoJs<'js> for &str[src]

impl<'js, T> IntoJs<'js> for &[T] where
    &'a T: IntoJs<'js>, 
[src]

impl<'js> IntoJs<'js> for ()[src]

impl<'js> IntoJs<'js> for &()[src]

impl<'js, T> IntoJs<'js> for Option<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for &Option<T> where
    &'a T: IntoJs<'js>, 
[src]

impl<'js, T, E> IntoJs<'js> for StdResult<T, E> where
    T: IntoJs<'js>,
    Error: From<E>, 
[src]

impl<'js, T, E> IntoJs<'js> for &StdResult<T, E> where
    &'a T: IntoJs<'js>,
    Error: From<&'a E>, 
[src]

impl<'js, L, R> IntoJs<'js> for Either<L, R> where
    L: IntoJs<'js>,
    R: IntoJs<'js>, 
[src]

This is supported on crate feature either only.

Convert the either into JS

impl<'js, L, R> IntoJs<'js> for &Either<L, R> where
    &'a L: IntoJs<'js>,
    &'a R: IntoJs<'js>, 
[src]

This is supported on crate feature either only.

Convert the either into JS

impl<'js, T> IntoJs<'js> for &Box<T> where
    &'r T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for Box<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for &Cell<T> where
    T: IntoJs<'js> + Copy
[src]

impl<'js, T> IntoJs<'js> for &RefCell<T> where
    &'r T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for Mutex<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for &Mutex<T> where
    &'r T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for RwLock<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for &RwLock<T> where
    &'r T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for Cell<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, T> IntoJs<'js> for RefCell<T> where
    T: IntoJs<'js>, 
[src]

impl<'js, A> IntoJs<'js> for (A,) where
    A: IntoJs<'js>, 
[src]

impl<'js, A, B> IntoJs<'js> for (A, B) where
    A: IntoJs<'js>,
    B: IntoJs<'js>, 
[src]

impl<'js, A, B, C> IntoJs<'js> for (A, B, C) where
    A: IntoJs<'js>,
    B: IntoJs<'js>,
    C: IntoJs<'js>, 
[src]

impl<'js, A, B, C, D> IntoJs<'js> for (A, B, C, D) where
    A: IntoJs<'js>,
    B: IntoJs<'js>,
    C: IntoJs<'js>,
    D: IntoJs<'js>, 
[src]

impl<'js, A, B, C, D, E> IntoJs<'js> for (A, B, C, D, E) where
    A: IntoJs<'js>,
    B: IntoJs<'js>,
    C: IntoJs<'js>,
    D: IntoJs<'js>,
    E: IntoJs<'js>, 
[src]

impl<'js, A, B, C, D, E, F> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J, K> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> IntoJs<'js> for (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>, 
[src]

impl<'js, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> IntoJs<'js> for (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>, 
[src]

impl<'js, T> IntoJs<'js> for Vec<T> where
    T: IntoJs<'js>, 
[src]

Convert from Rust vector to JS array

impl<'js, T> IntoJs<'js> for &Vec<T> where
    &'a T: IntoJs<'js>, 
[src]

Convert from Rust vector to JS array

impl<'js, T> IntoJs<'js> for VecDeque<T> where
    T: IntoJs<'js>, 
[src]

Convert from Rust vector deque to JS array

impl<'js, T> IntoJs<'js> for &VecDeque<T> where
    &'a T: IntoJs<'js>, 
[src]

Convert from Rust vector deque to JS array

impl<'js, T> IntoJs<'js> for LinkedList<T> where
    T: IntoJs<'js>, 
[src]

Convert from Rust linked list to JS array

impl<'js, T> IntoJs<'js> for &LinkedList<T> where
    &'a T: IntoJs<'js>, 
[src]

Convert from Rust linked list to JS array

impl<'js, T, S> IntoJs<'js> for HashSet<T, S> where
    T: IntoJs<'js>, 
[src]

Convert from Rust hash set to JS array

impl<'js, T, S> IntoJs<'js> for &HashSet<T, S> where
    &'a T: IntoJs<'js>, 
[src]

Convert from Rust hash set to JS array

impl<'js, T> IntoJs<'js> for BTreeSet<T> where
    T: IntoJs<'js>, 
[src]

Convert from Rust btree set to JS array

impl<'js, T> IntoJs<'js> for &BTreeSet<T> where
    &'a T: IntoJs<'js>, 
[src]

Convert from Rust btree set to JS array

impl<'js, T, S> IntoJs<'js> for IndexSet<T, S> where
    T: IntoJs<'js>, 
[src]

This is supported on crate feature indexmap only.

Convert from Rust index set to JS array

impl<'js, T, S> IntoJs<'js> for &IndexSet<T, S> where
    &'a T: IntoJs<'js>, 
[src]

This is supported on crate feature indexmap only.

Convert from Rust index set to JS array

impl<'js, K, V, S> IntoJs<'js> for HashMap<K, V, S> where
    K: IntoAtom<'js>,
    V: IntoJs<'js>, 
[src]

Convert from Rust hash map to JS object

impl<'js, K, V, S> IntoJs<'js> for &HashMap<K, V, S> where
    &'a K: IntoAtom<'js>,
    &'a V: IntoJs<'js>, 
[src]

Convert from Rust hash map to JS object

impl<'js, K, V> IntoJs<'js> for BTreeMap<K, V> where
    K: IntoAtom<'js>,
    V: IntoJs<'js>, 
[src]

Convert from Rust btree map to JS object

impl<'js, K, V> IntoJs<'js> for &BTreeMap<K, V> where
    &'a K: IntoAtom<'js>,
    &'a V: IntoJs<'js>, 
[src]

Convert from Rust btree map to JS object

impl<'js, K, V, S> IntoJs<'js> for IndexMap<K, V, S> where
    K: IntoAtom<'js>,
    V: IntoJs<'js>, 
[src]

This is supported on crate feature indexmap only.

Convert from Rust index map to JS object

impl<'js, K, V, S> IntoJs<'js> for &IndexMap<K, V, S> where
    &'a K: IntoAtom<'js>,
    &'a V: IntoJs<'js>, 
[src]

This is supported on crate feature indexmap only.

Convert from Rust index map to JS object

impl<'js> IntoJs<'js> for bool[src]

impl<'js> IntoJs<'js> for &bool[src]

impl<'js> IntoJs<'js> for i8[src]

impl<'js> IntoJs<'js> for &i8[src]

impl<'js> IntoJs<'js> for i16[src]

impl<'js> IntoJs<'js> for &i16[src]

impl<'js> IntoJs<'js> for i32[src]

impl<'js> IntoJs<'js> for &i32[src]

impl<'js> IntoJs<'js> for u8[src]

impl<'js> IntoJs<'js> for &u8[src]

impl<'js> IntoJs<'js> for u16[src]

impl<'js> IntoJs<'js> for &u16[src]

impl<'js> IntoJs<'js> for f32[src]

impl<'js> IntoJs<'js> for &f32[src]

impl<'js> IntoJs<'js> for f64[src]

impl<'js> IntoJs<'js> for &f64[src]

impl<'js> IntoJs<'js> for i64[src]

impl<'js> IntoJs<'js> for &i64[src]

impl<'js> IntoJs<'js> for u32[src]

impl<'js> IntoJs<'js> for &u32[src]

impl<'js> IntoJs<'js> for u64[src]

impl<'js> IntoJs<'js> for &u64[src]

impl<'js> IntoJs<'js> for usize[src]

impl<'js> IntoJs<'js> for &usize[src]

impl<'js> IntoJs<'js> for isize[src]

impl<'js> IntoJs<'js> for &isize[src]

Loading content...

Implementors

impl<'js> IntoJs<'js> for &Error[src]

impl<'js> IntoJs<'js> for &Value<'js>[src]

impl<'js> IntoJs<'js> for Array<'js>[src]

impl<'js> IntoJs<'js> for Function<'js>[src]

impl<'js> IntoJs<'js> for Module<'js, Evaluated>[src]

impl<'js> IntoJs<'js> for Null[src]

impl<'js> IntoJs<'js> for Object<'js>[src]

impl<'js> IntoJs<'js> for String<'js>[src]

impl<'js> IntoJs<'js> for Symbol<'js>[src]

impl<'js> IntoJs<'js> for Undefined[src]

impl<'js> IntoJs<'js> for Uninitialized[src]

impl<'js> IntoJs<'js> for Value<'js>[src]

impl<'js, 't, T> IntoJs<'js> for Persistent<T> where
    T: Outlive<'t>, 
[src]

impl<'js, C> IntoJs<'js> for Class<'js, C> where
    C: ClassDef
[src]

impl<'js, C> IntoJs<'js> for WithProto<'js, C> where
    C: ClassDef + IntoJs<'js>, 
[src]

impl<'js, F, A, R> IntoJs<'js> for Func<(F, PhantomData<(A, R)>)> where
    F: AsFunction<'js, A, R> + ParallelSend + 'static, 
[src]

impl<'js, N, F, A, R> IntoJs<'js> for Func<(N, F, PhantomData<(A, R)>)> where
    N: AsRef<str>,
    F: AsFunction<'js, A, R> + ParallelSend + 'static, 
[src]

impl<'js, T> IntoJs<'js> for Promised<T> where
    T: Future + ParallelSend + 'static,
    T::Output: IntoJs<'js_> + 'static, 
[src]

Loading content...