pub fn signature(
f: &ForeignFn,
lang: ForeignLang,
structs: &dyn Fn(&str) -> Option<StructId>,
) -> Result<(Vec<TypeRef>, Option<TypeRef>), String>Expand description
f’s parameter and return types as fic writes them, f declared in
lang, or why fic cannot express it (a parameter or a non-void
return with no fic type). structs resolves a struct name against the
.fis’s.
§Errors
Which parameter, or the return, has no fic type.