Skip to main content

ContextInitializer

Type Alias ContextInitializer 

Source
pub type ContextInitializer = fn(ctx: &mut CurrentContext<'_>) -> (Option<Box<dyn Any>>, FunctionSet);
Expand description

The function is used to initialize a Context.

The first return value sets the Context Data. The second return value sets the methods associated with the Context.