///
/// Generate create function for owned data function
///
Generate create function for owned data function
Generate create function for owned data function
fn gen_owned_data_create<W: Write>(
        &mut self,
        dest: &mut W,
        struct_name: &str,
    ) -> io::Result<()> {
        writeln!(
            dest,
            "    pub create_{}: extern \"C\" fn(
        priv_data: *const RUBase,
        callback: unsafe extern \"C\" fn(),
        host_data: *const c_void) -> RU{},",
            struct_name.to_snake_case(),
            struct_name
        )
    }
fn gen_owned_data_create < W : Write > ( & mut self , dest : & mut W , struct_name : & str , ) -> io :: Result < ( ) > { writeln ! ( dest " \" \" \" \" " struct_name to_snake_case ( ) struct_name ) }
Generate create function for owned data function
Generate create function for owned data function
&mut self
dest
&mut W
struct_name
&str