pub trait Callable<Args> {
// Required method
fn call(&self, view: &mut ViewContext, args: Args);
}
Expand description
Callable must be implemented for functions that can be used as component functions. They are given a ViewContext for the component function and injectable arguments.