[][src]Trait seed::prelude::ClosureNew

pub trait ClosureNew<T> {
    fn new(inner: impl FnMut(T) + 'static) -> Closure<dyn FnMut(T)>
    where
        T: FromWasmAbi + 'static
; }

Prevent repetition when wrapping closures.

Required methods

fn new(inner: impl FnMut(T) + 'static) -> Closure<dyn FnMut(T)> where
    T: FromWasmAbi + 'static, 

Loading content...

Implementors

impl<T> ClosureNew<T> for Closure<T>[src]

Loading content...