Struct cglue_gen::func::ParsedFunc [−][src]
pub struct ParsedFunc { /* fields omitted */ }
Implementations
pub fn new(
sig: Signature,
trait_name: Ident,
generics: &ParsedGenerics,
wrap_types: &BTreeMap<Option<Ident>, WrappedType>,
res_override: Option<&Ident>,
int_result: bool,
crate_path: &TokenStream,
only_c_side: bool,
custom_impl: Option<CustomFuncImpl>
) -> Option<Self>
Create a VTable definition for this function
Create a VTable definition for this function
pub fn cfunc_def(
&self,
tokens: &mut TokenStream,
trg_path: &TokenStream,
ret_tmp: &TokenStream
) -> Option<&TokenStream>
pub fn cfunc_def(
&self,
tokens: &mut TokenStream,
trg_path: &TokenStream,
ret_tmp: &TokenStream
) -> Option<&TokenStream>
Create a wrapper implementation body for this function
If the function is ReprC already, it will not be wrapped and will return None