artichoke_backend::load_path

Type Alias ExtensionHook

Source
pub type ExtensionHook = fn(_: &mut Artichoke) -> Result<(), Error>;
Expand description

Function type for extension hooks stored in the virtual file system.

This signature is equivalent to the signature for File::require as defined by the artichoke-backend implementation of LoadSources.