pub trait Instance: Send + Sync {
// Required method
fn run(&self, ctx: &Context<'_>, inputs: &Arrays) -> Result<Arrays>;
// Provided methods
fn linearize(
&self,
_ctx: &Context<'_>,
_inputs: &Arrays,
) -> Result<Option<(Arrays, Box<dyn Linear + '_>)>> { ... }
fn as_any(&self) -> Option<&dyn Any> { ... }
}Expand description
設定の決まったプラグイン(呼び出しの単位)
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".