tinymist_world

Trait ExportComputation

Source
pub trait ExportComputation<F: CompilerFeat, D> {
    type Output;
    type Config: Send + Sync + 'static;

    // Required method
    fn run(
        g: &Arc<WorldComputeGraph<F>>,
        doc: &Arc<D>,
        config: &Self::Config,
    ) -> Result<Self::Output>;

    // Provided methods
    fn run_with<C: WorldComputable<F, Output = Option<Arc<D>>>>(
        g: &Arc<WorldComputeGraph<F>>,
        config: &Self::Config,
    ) -> Result<Self::Output> { ... }
    fn cast_run<'a>(
        g: &Arc<WorldComputeGraph<F>>,
        doc: impl TryInto<&'a Arc<D>, Error = Error>,
        config: &Self::Config,
    ) -> Result<Self::Output>
       where D: 'a { ... }
}

Required Associated Types§

Source

type Output

Source

type Config: Send + Sync + 'static

Required Methods§

Source

fn run( g: &Arc<WorldComputeGraph<F>>, doc: &Arc<D>, config: &Self::Config, ) -> Result<Self::Output>

Provided Methods§

Source

fn run_with<C: WorldComputable<F, Output = Option<Arc<D>>>>( g: &Arc<WorldComputeGraph<F>>, config: &Self::Config, ) -> Result<Self::Output>

Source

fn cast_run<'a>( g: &Arc<WorldComputeGraph<F>>, doc: impl TryInto<&'a Arc<D>, Error = Error>, config: &Self::Config, ) -> Result<Self::Output>
where D: 'a,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§