Trait IteratorJs

Source
pub trait IteratorJs<'js, A> {
    // Required method
    fn collect_js<B>(self, ctx: &Ctx<'js>) -> Result<B>
       where B: FromIteratorJs<'js, A>;
}
Expand description

The Rust’s Iterator trait extension which works with Ctx

Required Methods§

Source

fn collect_js<B>(self, ctx: &Ctx<'js>) -> Result<B>
where B: FromIteratorJs<'js, A>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'js, T, A> IteratorJs<'js, A> for T
where T: Iterator<Item = A>,