fn generate_includes<W: Write>(f: &mut W, api_def: &ApiDef) -> io::Result<()> {
    // There is a small hack here where we include generating includes for the static
    // funcs structs as it doesn't map to a qt class
    for sdef in api_def
        .class_structs
        .iter()
        .filter(|s| s.name != "StaticFuncs")
    {
        f.write_fmt(format_args!("#include <{}>\n", sdef.qt_name))?;
        f.write_fmt(format_args!(
            "#include \"{}_ffi.h\"\n",
            sdef.name.to_snake_case()
        ))?;
    }

    f.write_all(b"\n")
}
///
/// Generate includes from all the structs which are non-pod
///
Generate includes from all the structs which are non-pod
Generate includes from all the structs which are non - pod
fn generate_includes<W: Write>(f: &mut W, api_def: &ApiDef) -> io::Result<()> {
    // There is a small hack here where we include generating includes for the static
    // funcs structs as it doesn't map to a qt class
    for sdef in api_def
        .class_structs
        .iter()
        .filter(|s| s.name != "StaticFuncs")
    {
        f.write_fmt(format_args!("#include <{}>\n", sdef.qt_name))?;
        f.write_fmt(format_args!(
            "#include \"{}_ffi.h\"\n",
            sdef.name.to_snake_case()
        ))?;
    }
    f.write_all(b"\n")
}
fn generate_includes < W : Write > ( f : & mut W , api_def : & ApiDef ) -> io :: Result < ( ) > { // There is a small hack here where we include generating includes for the static // funcs structs as it doesn't map to a qt class for sdef in api_def . class_structs . iter ( ) . filter ( | s | s . name != " " ) { f . write_fmt ( format_args ! ( " \n " sdef qt_name ) ) ? ; f . write_fmt ( format_args ! ( " \" \" \n " sdef name to_snake_case ( ) ) ) ? ; } f . write_all ( b" \n " ) }
Generate includes from all the structs which are non-pod
Generate includes from all the structs which are non - pod
f
&mut W
api_def
&ApiDef
f
&mut W
api_def
&ApiDef