Skip to main content

generate_interface

Function generate_interface 

Source
pub fn generate_interface(interface: &Interface) -> Result<String, CodegenError>
Expand description

Generate formatted Rust source for an interface’s impls (its Contract / Interface identity and typed choice impls) on its marker type.

§Errors

Returns CodegenError if the generated tokens are not valid Rust.