Skip to main content

generate_record

Function generate_record 

Source
pub fn generate_record(record: &Record) -> Result<String, CodegenError>
Expand description

Generate formatted Rust source for a single record data type.

ยงErrors

Returns CodegenError if the generated tokens are not valid Rust.