Struct libffi::high::arity6::ClosureMut6
[−]
[src]
pub struct ClosureMut6<'a, A, B, C, D, E, F, 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, R: CType> ClosureMut6<'a, A, B, C, D, E, F, R>
[src]
fn new<Callback>(callback: &'a mut Callback) -> Self where Callback: FnMut(A, B, C, D, E, F) -> R + 'a
Constructs a typed closure callable from C from a Rust closure.
impl<'a, A, B, C, D, E, F, R> ClosureMut6<'a, A, B, C, D, E, F, R>
[src]
fn code_ptr(&self) -> &extern fn(_: A, _: B, _: C, _: D, _: E, _: F) -> R
Gets the C code pointer that is used to invoke the closure.
fn from_parts<U>(cif: Cif6<A, B, C, D, E, F, R>,
callback: CallbackMut6<U, A, B, C, D, E, F, R>,
userdata: &'a mut U)
-> Self
callback: CallbackMut6<U, A, B, C, D, E, F, 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, R> ClosureMut6<'a, A, B, C, D, E, F, R>
[src]
fn new_with_cif<Callback>(cif: Cif6<A, B, C, D, E, F, R>,
callback: &'a mut Callback)
-> Self where Callback: FnMut(A, B, C, D, E, F) -> R + 'a
callback: &'a mut Callback)
-> Self where Callback: FnMut(A, B, C, D, E, F) -> 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.