pub trait IntoJs<'js> {
// Required method
fn into_js(self, ctx: &Ctx<'js>) -> Result<Value<'js>, Error>;
}
Expand description
For converting Rust values to JavaScript values
Required Methods§
Implementations on Foreign Types§
source§impl<'js> IntoJs<'js> for SystemTime
impl<'js> IntoJs<'js> for SystemTime
source§impl<'js, K, V, S> IntoJs<'js> for &IndexMap<K, V, S>
Available on crate feature indexmap
only.
impl<'js, K, V, S> IntoJs<'js> for &IndexMap<K, V, S>
Available on crate feature
indexmap
only.Convert from Rust index map to JS object
source§impl<'js, K, V, S> IntoJs<'js> for IndexMap<K, V, S>
Available on crate feature indexmap
only.
impl<'js, K, V, S> IntoJs<'js> for IndexMap<K, V, S>
Available on crate feature
indexmap
only.Convert from Rust index map to JS object
source§impl<'js, L, R> IntoJs<'js> for &Either<L, R>
Available on crate feature either
only.
impl<'js, L, R> IntoJs<'js> for &Either<L, R>
Available on crate feature
either
only.Convert the either into JS
source§impl<'js, L, R> IntoJs<'js> for Either<L, R>
Available on crate feature either
only.
impl<'js, L, R> IntoJs<'js> for Either<L, R>
Available on crate feature
either
only.Convert the either into JS
source§impl<'js, T> IntoJs<'js> for &LinkedList<T>
impl<'js, T> IntoJs<'js> for &LinkedList<T>
Convert from Rust linked list 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 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
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, S> IntoJs<'js> for &IndexSet<T, S>
Available on crate feature indexmap
only.
impl<'js, T, S> IntoJs<'js> for &IndexSet<T, S>
Available on crate feature
indexmap
only.Convert from Rust index set to JS array
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, 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>,
Available on crate feature
indexmap
only.Convert from Rust index set to JS array