Trait rquickjs::FromIteratorJs

source ·
pub trait FromIteratorJs<'js, A>: Sized {
    type Item;

    // Required method
    fn from_iter_js<T>(ctx: &Ctx<'js>, iter: T) -> Result<Self, Error>
       where T: IntoIterator<Item = A>;
}
Expand description

The Rust’s FromIterator trait to use with Ctx

Required Associated Types§

Required Methods§

source

fn from_iter_js<T>(ctx: &Ctx<'js>, iter: T) -> Result<Self, Error>
where T: IntoIterator<Item = A>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'js, A> FromIteratorJs<'js, A> for Array<'js>
where A: IntoJs<'js>,

§

type Item = Value<'js>

source§

impl<'js, K, V> FromIteratorJs<'js, (K, V)> for Object<'js>
where K: IntoAtom<'js>, V: IntoJs<'js>,

§

type Item = (Atom<'js>, Value<'js>)