pub trait SubModel2 {
type Config;
type Input1;
type Input2;
type Output;
// Required methods
fn build(var_store: &VarStore, config: Self::Config) -> Self;
fn clone_with_var_store(&self, var_store: &VarStore) -> Self;
fn forward(
&self,
input1: &Self::Input1,
input2: &Self::Input2,
) -> Self::Output;
}Expand description
Required Associated Types§
Required Methods§
Sourcefn build(var_store: &VarStore, config: Self::Config) -> Self
fn build(var_store: &VarStore, config: Self::Config) -> Self
Builds SubModel2 with VarStore and SubModel2::Config.
Sourcefn clone_with_var_store(&self, var_store: &VarStore) -> Self
fn clone_with_var_store(&self, var_store: &VarStore) -> Self
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.