pub trait Model<'a> {
type Input;
type Output;
// Required method
fn forward(&self, input: Self::Input) -> Result<Self::Output>;
}Expand description
A compiled, runnable model.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".