py_codegen/
lib.rs

1pub trait Backend {
2    type Error;
3
4    type Config;
5
6    type Module<'m>
7    where
8        Self: 'm;
9
10    fn init(config: Self::Config) -> Self;
11
12    fn module(&self, name: &str, items: &[py_ir::Item]) -> Result<Self::Module<'_>, Self::Error>;
13}