Struct libffi::high::arity1::Cif1
[−]
[src]
pub struct Cif1<A, R> { /* fields omitted */ }
A typed CIF, which statically tracks argument and result types.
Methods
impl<A, R> Cif1<A, R>
[src]
fn new(A: Type<A>, result: Type<R>) -> Self
Creates a new statically-typed CIF with the given argument and result types.
fn set_abi(&mut self, abi: FfiAbi)
Sets the CIF to use the given calling convention.
impl<A: CType, R: CType> Cif1<A, R>
[src]
fn reify() -> Self
Creates a new statically-typed CIF by reifying the
argument types as Type<T>
s.