use crate::component::{AllCallFunc, ComponentTranslation, ComponentTypesBuilder, TrampolineIndex};
use anyhow::Result;
use std::any::Any;
pub trait ComponentCompiler: Send + Sync {
fn compile_trampoline(
&self,
component: &ComponentTranslation,
types: &ComponentTypesBuilder,
trampoline: TrampolineIndex,
) -> Result<AllCallFunc<Box<dyn Any + Send>>>;
}