pub trait OpState: Debug + DynClone + OpStateFreeze {
    // Required method
    fn eval(
        &mut self,
        session: &mut SessionState,
        op: &(dyn Op + 'static),
        inputs: SmallVec<[TValue; 4]>
    ) -> Result<SmallVec<[TValue; 4]>, Error>;
}

Required Methods§

fn eval( &mut self, session: &mut SessionState, op: &(dyn Op + 'static), inputs: SmallVec<[TValue; 4]> ) -> Result<SmallVec<[TValue; 4]>, Error>

Trait Implementations§

§

impl<'clone> Clone for Box<dyn OpState + 'clone, Global>

§

fn clone(&self) -> Box<dyn OpState + 'clone, Global>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn OpState + Send + 'clone, Global>

§

fn clone(&self) -> Box<dyn OpState + Send + 'clone, Global>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn OpState + Sync + 'clone, Global>

§

fn clone(&self) -> Box<dyn OpState + Sync + 'clone, Global>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone> Clone for Box<dyn OpState + Sync + Send + 'clone, Global>

§

fn clone(&self) -> Box<dyn OpState + Sync + Send + 'clone, Global>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementations on Foreign Types§

source§

impl OpState for DelayState

source§

fn eval( &mut self, _state: &mut SessionState, op: &(dyn Op + 'static), inputs: SmallVec<[TValue; 4]> ) -> Result<SmallVec<[TValue; 4]>, Error>

Implementors§

§

impl OpState for Range

§

impl OpState for Slice

§

impl OpState for Tile

§

impl OpState for Cast

§

impl OpState for SourceState