pub fn from_foreign(
func: &ForeignFn,
spec: &FnSpec,
consts: &[&str],
) -> Result<FnContract>Expand description
Build and check the contract of a C function from its specification.
consts are the .fis constants a clause may name besides the
parameters.
ยงErrors
Only named behaviours; a clause outside the subset;
an identifier that is neither a parameter nor a constant; or a contract
FnContract::from_clauses rejects.