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<Ident, WrappedType>,
res_override: Option<&Ident>,
int_result: bool,
crate_path: &TokenStream
) -> 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
) -> (Option<&TokenStream>, bool)
pub fn cfunc_def(
&self,
tokens: &mut TokenStream,
trg_path: &TokenStream
) -> (Option<&TokenStream>, bool)
Create a wrapper implementation body for this function
If the function is ReprC already, it will not be wrapped and will return None
pub fn int_trait_impl(
&self,
ext_path: Option<&Path>,
ext_name: &Ident,
tokens: &mut TokenStream
)
Auto Trait Implementations
impl RefUnwindSafe for ParsedFunc
impl !Send for ParsedFunc
impl !Sync for ParsedFunc
impl Unpin for ParsedFunc
impl UnwindSafe for ParsedFunc