Struct libffi::high::arity11::ClosureMut11
[−]
[src]
pub struct ClosureMut11<'a, A, B, C, D, E, F, G, H, I, J, K, R> { /* fields omitted */ }
A mutable, typed closure with the given argument and result types.
Methods
impl<'a, A: CType, B: CType, C: CType, D: CType, E: CType, F: CType, G: CType, H: CType, I: CType, J: CType, K: CType, R: CType> ClosureMut11<'a, A, B, C, D, E, F, G, H, I, J, K, R>
[src]
pub fn new<Callback>(callback: &'a mut Callback) -> Self where
Callback: FnMut(A, B, C, D, E, F, G, H, I, J, K) -> R + 'a,
[src]
Callback: FnMut(A, B, C, D, E, F, G, H, I, J, K) -> R + 'a,
Constructs a typed closure callable from C from a Rust closure.
impl<'a, A, B, C, D, E, F, G, H, I, J, K, R> ClosureMut11<'a, A, B, C, D, E, F, G, H, I, J, K, R>
[src]
pub fn code_ptr(
&self
) -> &extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> R
[src]
&self
) -> &extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F, _: G, _: H, _: I, _: J, _: K) -> R
Gets the C code pointer that is used to invoke the closure.
pub fn from_parts<U>(
cif: Cif11<A, B, C, D, E, F, G, H, I, J, K, R>,
callback: CallbackMut11<U, A, B, C, D, E, F, G, H, I, J, K, R>,
userdata: &'a mut U
) -> Self
[src]
cif: Cif11<A, B, C, D, E, F, G, H, I, J, K, R>,
callback: CallbackMut11<U, A, B, C, D, E, F, G, H, I, J, K, 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.
impl<'a, A: Copy, B: Copy, C: Copy, D: Copy, E: Copy, F: Copy, G: Copy, H: Copy, I: Copy, J: Copy, K: Copy, R> ClosureMut11<'a, A, B, C, D, E, F, G, H, I, J, K, R>
[src]
pub fn new_with_cif<Callback>(
cif: Cif11<A, B, C, D, E, F, G, H, I, J, K, R>,
callback: &'a mut Callback
) -> Self where
Callback: FnMut(A, B, C, D, E, F, G, H, I, J, K) -> R + 'a,
[src]
cif: Cif11<A, B, C, D, E, F, G, H, I, J, K, R>,
callback: &'a mut Callback
) -> Self where
Callback: FnMut(A, B, C, D, E, F, G, H, I, J, K) -> 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.