pub trait IntoScriptPluginParams: 'static {
type C: Context;
type R: Runtime;
const LANGUAGE: Language;
// Required method
fn build_runtime() -> Self::R;
}
Expand description
Types which act like scripting plugins, by selecting a context and runtime Each individual combination of context and runtime has specific infrastructure built for it and does not interact with other scripting plugins
When implementing a new scripting plugin, also ensure the following implementations exist:
Plugin
for the plugin, bothPlugin::build
andPlugin::finish
methods need to be dispatched to the underlyingScriptingPlugin
struct- [
AsMut<ScriptingPlugin<Self>
] for the plugin struct
Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn build_runtime() -> Self::R
fn build_runtime() -> Self::R
Build the runtime
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.