[][src]Struct safer_ffi::closure::arc::ArcDynFn7

#[repr(C)]pub struct ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
{ /* fields omitted */ }

Arc<dyn 'static + Send + Sync + Fn(A7, A6, A5, A4, A3, A2, A1) -> Ret>

C Layout

Implementations

impl<Ret, A7, A6, A5, A4, A3, A2, A1> ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

pub fn new<F>(f: Arc<F>) -> Self where
    F: Fn(A7, A6, A5, A4, A3, A2, A1) -> Ret,
    F: Send + Sync + 'static, 
[src]

impl<Ret, A7, A6, A5, A4, A3, A2, A1> ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

pub fn call(
    &self,
    A7: A7,
    A6: A6,
    A5: A5,
    A4: A4,
    A3: A3,
    A2: A2,
    A1: A1
) -> Ret
[src]

Trait Implementations

impl<Ret, A7, A6, A5, A4, A3, A2, A1> Clone for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

impl<Ret, A7, A6, A5, A4, A3, A2, A1> Debug for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

impl<Ret, A7, A6, A5, A4, A3, A2, A1> Drop for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

impl<Ret, A7, A6, A5, A4, A3, A2, A1> ReprC for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    NonNull<c_void>: ReprC,
    <NonNull<c_void> as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A7, _: A6, _: A5, _: A4, _: A3, _: A2, _: A1) -> Ret: ReprC,
    <unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A7, _: A6, _: A5, _: A4, _: A3, _: A2, _: A1) -> Ret as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    <unsafe extern "C" fn(env_ptr: NonNull<c_void>) as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ReprC,
    <Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)> as ReprC>::CLayout: CType<OPAQUE_KIND = Concrete>,
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC,
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

type CLayout = ArcDynFn7_Layout<Ret, A7, A6, A5, A4, A3, A2, A1>

The CType having the same layout as Self.

impl<Ret, A7, A6, A5, A4, A3, A2, A1> Send for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

Arc<dyn Send + Sync + ...> : Send

impl<Ret, A7, A6, A5, A4, A3, A2, A1> Sync for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1> where
    Ret: ReprC,
    A7: ReprC,
    A6: ReprC,
    A5: ReprC,
    A4: ReprC,
    A3: ReprC,
    A2: ReprC,
    A1: ReprC
[src]

Arc<dyn Send + Sync + ...> : Sync

Auto Trait Implementations

impl<Ret, A7, A6, A5, A4, A3, A2, A1> RefUnwindSafe for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1>

impl<Ret, A7, A6, A5, A4, A3, A2, A1> Unpin for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1>

impl<Ret, A7, A6, A5, A4, A3, A2, A1> UnwindSafe for ArcDynFn7<Ret, A7, A6, A5, A4, A3, A2, A1>

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

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.