Skip to main content

create_simple

Function create_simple 

Source
pub fn create_simple<T: HashPlugin>(name: &str) -> PluginResult<T>
Expand description

Trivial constructor entry point for plugin authors who don’t need opts. Wraps HashPlugin::create_with_opts with None.

Plugin authors do not normally call this — the macro-generated cfmp_hash_create calls create_with_opts directly. It’s provided as a convenience for tests and hand-written plugins.