Struct deno_libffi::high::arity6::ClosureOnce6 [−][src]
pub struct ClosureOnce6<A, B, C, D, E, F, 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: Cif6<A, B, C, D, E, F, R>,
callback: Callback
) -> Self where
Callback: FnOnce(A, B, C, D, E, F) -> R + Any,
pub fn new_with_cif<Callback>(
cif: Cif6<A, B, C, D, E, F, R>,
callback: Callback
) -> Self where
Callback: FnOnce(A, B, C, D, E, F) -> 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: Cif6<A, B, C, D, E, F, R>,
callback: CallbackOnce6<U, A, B, C, D, E, F, R>,
userdata: U
) -> Self
pub fn from_parts<U: Any>(
cif: Cif6<A, B, C, D, E, F, R>,
callback: CallbackOnce6<U, A, B, C, D, E, F, 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.