Struct deno_libffi::high::arity9::Closure9 [−][src]
pub struct Closure9<'a, A, B, C, D, E, F, G, H, I, R> { /* fields omitted */ }
Expand description
An immutable, typed closure with the given argument and result types.
Implementations
Gets the C code pointer that is used to invoke the closure.
pub fn from_parts<U>(
cif: Cif9<A, B, C, D, E, F, G, H, I, R>,
callback: Callback9<U, A, B, C, D, E, F, G, H, I, R>,
userdata: &'a U
) -> Self
pub fn from_parts<U>(
cif: Cif9<A, B, C, D, E, F, G, H, I, R>,
callback: Callback9<U, A, B, C, D, E, F, G, H, I, R>,
userdata: &'a U
) -> Self
Constructs a typed closure callable from C from a CIF describing the calling convention for the resulting function, a callback for the function to call, and userdata to pass to the callback.
pub fn new_with_cif<Callback>(
cif: Cif9<A, B, C, D, E, F, G, H, I, R>,
callback: &'a Callback
) -> Self where
Callback: Fn(A, B, C, D, E, F, G, H, I) -> R + 'a,
pub fn new_with_cif<Callback>(
cif: Cif9<A, B, C, D, E, F, G, H, I, R>,
callback: &'a Callback
) -> Self where
Callback: Fn(A, B, C, D, E, F, G, H, I) -> R + 'a,
Constructs a typed closure callable from C from a CIF describing the calling convention for the resulting function and the Rust closure to call.