pub trait Module<X> {
type Output;
// Required method
fn forward(&self, x: &X) -> Result<Self::Output, Error>;
}Expand description
A unit of computation that consumes Input and produces Module::Output.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".