Struct deno_libffi::high::arity12::ClosureMut12 [−][src]
pub struct ClosureMut12<'a, A, B, C, D, E, F, G, H, I, J, K, L, R> { /* fields omitted */ }
Expand description
A mutable, typed closure with the given argument and result types.
Implementations
impl<'a, A, B, C, D, E, F, G, H, I, J, K, L, R> ClosureMut12<'a, A, B, C, D, E, F, G, H, I, J, K, L, R>
impl<'a, A, B, C, D, E, F, G, H, I, J, K, L, R> ClosureMut12<'a, A, B, C, D, E, F, G, H, I, J, K, L, R>
Gets the C code pointer that is used to invoke the closure.
pub fn from_parts<U>(
cif: Cif12<A, B, C, D, E, F, G, H, I, J, K, L, R>,
callback: CallbackMut12<U, A, B, C, D, E, F, G, H, I, J, K, L, R>,
userdata: &'a mut U
) -> Self
pub fn from_parts<U>(
cif: Cif12<A, B, C, D, E, F, G, H, I, J, K, L, R>,
callback: CallbackMut12<U, A, B, C, D, E, F, G, H, I, J, K, L, R>,
userdata: &'a mut 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: Cif12<A, B, C, D, E, F, G, H, I, J, K, L, R>,
callback: &'a mut Callback
) -> Self where
Callback: FnMut(A, B, C, D, E, F, G, H, I, J, K, L) -> R + 'a,
pub fn new_with_cif<Callback>(
cif: Cif12<A, B, C, D, E, F, G, H, I, J, K, L, R>,
callback: &'a mut Callback
) -> Self where
Callback: FnMut(A, B, C, D, E, F, G, H, I, J, K, L) -> 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.