fn generate_method_body(ptr: &FnPtr) -> Block {
            let name = &ptr.name;
            let fn_ptr_call =
                generate_fn_ptr_call(&ptr.signature, Ident::new("f", Span::call_site()));
            syn::parse_quote! {
                {
                    match self.pointers.#name {
                        None => panic!(
                            "Attempt to use a function that has not been loaded: {}",
                            stringify!(#name)
                        ),
                        Some(f) => #fn_ptr_call,
                    }
                }
            }
        }
/// Generates the body of a method in e.g. `impl Reaper`
Generates the body of a method in e.g. `impl Reaper`
Generates the body of a method in e . g . ` impl Reaper `
fn generate_method_body(ptr: &FnPtr) -> Block {
            let name = &ptr.name;
            let fn_ptr_call =
                generate_fn_ptr_call(&ptr.signature, Ident::new("f", Span::call_site()));
            syn::parse_quote! {
                {
                    match self.pointers.#name {
                        None => panic!(
                            "Attempt to use a function that has not been loaded: {}",
                            stringify!(#name)
                        ),
                        Some(f) => #fn_ptr_call,
                    }
                }
            }
        }
fn generate_method_body ( ptr : & FnPtr ) -> Block { let name = & ptr . name ; let fn_ptr_call = generate_fn_ptr_call ( & ptr . signature , Ident :: new ( " " , Span :: call_site ( ) ) ) ; syn :: parse_quote ! { { match self pointers name { None panic ( " " stringify ( name ) ) Some ( f ) fn_ptr_call } } } }
Generates the body of a method in e.g.
Generates the body of a method in e . g .
ptr
&FnPtr
ptr
&FnPtr