pub trait ControlExtensions<D> {
    // Required methods
    fn with_vm<V: 'static, F: 'static + Fn(&Rc<RefCell<V>>, &mut StyledControl<D>)>(
        self,
        vm: &Rc<RefCell<V>>,
        f: F
    ) -> Self;
    fn with_binding<V: 'static, F: 'static + Fn(&mut V, &mut StyledControl<D>) -> EventSubscription>(
        self,
        bindings: &mut Vec<EventSubscription>,
        vm: &Rc<RefCell<V>>,
        f: F
    ) -> Rc<RefCell<StyledControl<D>>>;
}

Required Methods§

source

fn with_vm<V: 'static, F: 'static + Fn(&Rc<RefCell<V>>, &mut StyledControl<D>)>( self, vm: &Rc<RefCell<V>>, f: F ) -> Self

source

fn with_binding<V: 'static, F: 'static + Fn(&mut V, &mut StyledControl<D>) -> EventSubscription>( self, bindings: &mut Vec<EventSubscription>, vm: &Rc<RefCell<V>>, f: F ) -> Rc<RefCell<StyledControl<D>>>

Implementations on Foreign Types§

source§

impl<D: 'static> ControlExtensions<D> for Rc<RefCell<StyledControl<D>>>

source§

fn with_vm<V: 'static, F: 'static + Fn(&Rc<RefCell<V>>, &mut StyledControl<D>)>( self, vm: &Rc<RefCell<V>>, f: F ) -> Rc<RefCell<StyledControl<D>>>

source§

fn with_binding<V: 'static, F: 'static + Fn(&mut V, &mut StyledControl<D>) -> EventSubscription>( self, bindings: &mut Vec<EventSubscription>, vm: &Rc<RefCell<V>>, f: F ) -> Rc<RefCell<StyledControl<D>>>

Implementors§