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