Trait IntoSignalSetter

pub trait IntoSignalSetter<T, S>: Sized {
    // Required method
    fn into_signal_setter(self) -> SignalSetter<T, S>;
}
Expand description

Helper trait for converting Fn(T) into SignalSetter<T>.

Required Methods§

fn into_signal_setter(self) -> SignalSetter<T, S>

Consumes self, returning SignalSetter<T>.

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§

§

impl<F, T, S> IntoSignalSetter<T, S> for F
where F: Fn(T) + 'static + Send + Sync, S: Storage<Box<dyn Fn(T) + Send + Sync>>,