web_component::prelude

Type Alias ContextFn

Source
pub type ContextFn = Box<dyn Fn() -> Box<dyn Any> + Sync + Send>;
Expand description

A context function is a Send and Sync closure that returns a boxed trait object

Aliased Typeยง

struct ContextFn(/* private fields */);