MCPcopy Index your code
hub / github.com/RustPython/RustPython / to_cif

Method to_cif

crates/jit/src/lib.rs:181–187  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

179
180impl JitSig {
181 fn to_cif(&self) -> libffi::middle::Cif {
182 let ret = match self.ret {
183 Some(ref ty) => ty.to_libffi(),
184 None => libffi::middle::Type::void(),
185 };
186 libffi::middle::Cif::new(self.args.iter().map(JitType::to_libffi), ret)
187 }
188}
189
190#[derive(Debug, Clone, PartialEq, Eq)]

Callers 1

invoke_rawMethod · 0.80

Calls 4

newFunction · 0.85
to_libffiMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected