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 { ... }
}
Expand description
A trait to compute the export of a document.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn run_with<C: WorldComputable<F, Output = Option<Arc<D>>>>(
g: &Arc<WorldComputeGraph<F>>,
config: &Self::Config,
) -> Result<Self::Output>
fn run_with<C: WorldComputable<F, Output = Option<Arc<D>>>>( g: &Arc<WorldComputeGraph<F>>, config: &Self::Config, ) -> Result<Self::Output>
Runs the export computation.
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.