Trait Loop

Source
pub trait Loop<A>
where A: 'static + Loop<A>, Self: 'static,
{ // Required methods fn core(&self) -> &Core; fn as_rc(&self) -> Rc<RefCell<A>>; fn cb<X, F>(&self, f: F) -> Callback<X> where X: 'static + Send, F: 'static + Fn(&mut A, X); // Provided methods fn module(&self) -> ModuleCfg { ... } fn with_scope<X>(&self, x: X, f: fn(&mut SubScope<A, X>)) { ... } }

Required Methods§

Source

fn core(&self) -> &Core

Source

fn as_rc(&self) -> Rc<RefCell<A>>

Source

fn cb<X, F>(&self, f: F) -> Callback<X>
where X: 'static + Send, F: 'static + Fn(&mut A, X),

Provided Methods§

Source

fn module(&self) -> ModuleCfg

Source

fn with_scope<X>(&self, x: X, f: fn(&mut SubScope<A, X>))

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> Loop<Scope<A>> for Scope<A>

Source§

impl<P, A> Loop<SubScope<P, A>> for SubScope<P, A>
where P: Loop<P>,