Trait tract_api::StateInterface

source ·
pub trait StateInterface {
    type Value: ValueInterface;

    // Required methods
    fn input_count(&self) -> Result<usize>;
    fn output_count(&self) -> Result<usize>;
    fn run<I, V, E>(&mut self, inputs: I) -> Result<Vec<Self::Value>>
       where I: IntoIterator<Item = V>,
             V: TryInto<Self::Value, Error = E>,
             E: Into<Error>;
}

Required Associated Types§

Required Methods§

source

fn input_count(&self) -> Result<usize>

source

fn output_count(&self) -> Result<usize>

source

fn run<I, V, E>(&mut self, inputs: I) -> Result<Vec<Self::Value>>
where I: IntoIterator<Item = V>, V: TryInto<Self::Value, Error = E>, E: Into<Error>,

Object Safety§

This trait is not object safe.

Implementors§