with_plugin

Function with_plugin 

Source
pub fn with_plugin<T, R>(f: impl FnOnce(&T) -> R) -> R
where T: Plugin + 'static,
Expand description

Provides access to the registered plugin instance.

ยงPanics

Panics if the plugin type was not registered.