Trait Forward

Source
pub trait Forward<T> {
    type Output;

    // Required method
    fn forward(&self, args: &T) -> Result<Self::Output, PredictError>;
}
Expand description

Forward describes an object capable of forward propagation.

Required Associated Types§

Required Methods§

Source

fn forward(&self, args: &T) -> Result<Self::Output, PredictError>

Implementations on Foreign Types§

Source§

impl<S, T> Forward<T> for Option<S>
where S: Forward<T, Output = T>, T: Clone,

Source§

type Output = T

Source§

fn forward( &self, args: &T, ) -> Result<<Option<S> as Forward<T>>::Output, PredictError>

Implementors§

Source§

impl<S, T> Forward<T> for S
where S: AsRef<dyn Forward<T, Output = T>>, T: Clone,