[][src]Struct libffi::high::arity6::Closure6

pub struct Closure6<'a, A, B, C, D, E, F, R> { /* fields omitted */ }

An immutable, 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> Closure6<'a, A, B, C, D, E, F, R>[src]

pub fn new<Callback>(callback: &'a Callback) -> Self where
    Callback: Fn(A, B, C, D, E, F) -> R + 'a, 
[src]

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

impl<'a, A, B, C, D, E, F, R> Closure6<'a, A, B, C, D, E, F, R>[src]

pub fn code_ptr(
    &self
) -> &extern "C" fn(_: A, _: B, _: C, _: D, _: E, _: F) -> R
[src]

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

pub fn from_parts<U>(
    cif: Cif6<A, B, C, D, E, F, R>,
    callback: Callback6<U, A, B, C, D, E, F, R>,
    userdata: &'a U
) -> Self
[src]

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> Closure6<'a, A, B, C, D, E, F, R>[src]

pub fn new_with_cif<Callback>(
    cif: Cif6<A, B, C, D, E, F, R>,
    callback: &'a Callback
) -> Self where
    Callback: Fn(A, B, C, D, E, F) -> R + 'a, 
[src]

Constructs a typed closure callable from C from a CIF describing the calling convention for the resulting function and the Rust closure to call.

Auto Trait Implementations

impl<'a, A, B, C, D, E, F, R> !Send for Closure6<'a, A, B, C, D, E, F, R>

impl<'a, A, B, C, D, E, F, R> !Sync for Closure6<'a, A, B, C, D, E, F, R>

impl<'a, A, B, C, D, E, F, R> Unpin for Closure6<'a, A, B, C, D, E, F, R>

impl<'a, A, B, C, D, E, F, R> UnwindSafe for Closure6<'a, A, B, C, D, E, F, R>

impl<'a, A, B, C, D, E, F, R> RefUnwindSafe for Closure6<'a, A, B, C, D, E, F, R>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]