Trait Predict

Source
pub trait Predict<T> {
    type Output;

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

Required Associated Types§

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

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

Source§

type Output = T

Source§

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

Implementors§