Trait interoptopus::Interop [−][src]
pub trait Interop { fn write_to(&self, w: &mut IndentWriter<'_>) -> Result<(), Error>; fn write_file<P: AsRef<Path>>(&self, file_name: P) -> Result<(), Error> { ... } }
Expand description
Main entry point for backends to generate language bindings.
This trait will be implemented by each backend and is the main way to interface with a generator.
Required methods
Generates FFI binding code and writes them to the IndentWriter
.