Trait SignalVecSpawn

Source
pub trait SignalVecSpawn<A> {
    // Required method
    fn spawn_local<F>(self, f: F)
       where F: Fn(VecDiff<A>) + 'static;

    // Provided methods
    fn feed_local(self, target: MutableVec<A>)
       where Self: Sized,
             A: Copy + 'static { ... }
    fn feed_local_cloned(self, target: MutableVec<A>)
       where Self: Sized,
             A: Clone + 'static { ... }
}

Required Methods§

Source

fn spawn_local<F>(self, f: F)
where F: Fn(VecDiff<A>) + 'static,

Provided Methods§

Source

fn feed_local(self, target: MutableVec<A>)
where Self: Sized, A: Copy + 'static,

Source

fn feed_local_cloned(self, target: MutableVec<A>)
where Self: Sized, A: Clone + 'static,

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<A, S> SignalVecSpawn<A> for S
where S: SignalVec<Item = A> + 'static,