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