Skip to main content

Visitor

Trait Visitor 

Source
pub trait Visitor {
    type Output;

    // Required method
    fn visit<E: CompiledEnv + Clone + 'static>(
        &mut self,
        module: &str,
        env: &E,
    ) -> Self::Output;
}
Expand description

A computation on a compiled environment, called with the environment’s type (by ruxla_env_jax::visit for an environment chosen by name).

Required Associated Types§

Source

type Output

The result.

Required Methods§

Source

fn visit<E: CompiledEnv + Clone + 'static>( &mut self, module: &str, env: &E, ) -> Self::Output

Runs on the environment of module (a generated Env, a unit struct that can be copied and kept, as CompiledVecEnv::new keeps it).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§