Struct libffi::high::arity0::ClosureOnce0 [] [src]

pub struct ClosureOnce0<R> { /* fields omitted */ }

A one-shot, typed closure with the given argument and result types.

Methods

impl<R: CType> ClosureOnce0<R>
[src]

[src]

Constructs a typed closure callable from C from a Rust closure.

impl<R> ClosureOnce0<R>
[src]

[src]

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.

impl<R> ClosureOnce0<R>
[src]

[src]

Gets the C code pointer that is used to invoke the closure.

[src]

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.