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§
fn core(&self) -> &Core
fn as_rc(&self) -> Rc<RefCell<A>>
fn cb<X, F>(&self, f: F) -> Callback<X>
Provided Methods§
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.