pub trait RenderLoopClosure: 'static {
    fn call(&mut self, x: f64) -> bool;
}
Expand description

Note: the closure must have static lifetime because of the constraints imposed by wasm-bindgen: https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/closure/struct.Closure.html

Required Methods

Call the closure

Implementors