pub trait OnnxInterface {
type InferenceModel: InferenceModelInterface;
// Required method
fn model_for_path(
&self,
path: impl AsRef<Path>,
) -> Result<Self::InferenceModel>;
}
Required Associated Types§
Required Methods§
fn model_for_path(&self, path: impl AsRef<Path>) -> Result<Self::InferenceModel>
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.