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

#[repr(C)]pub struct ArcDynFn0_Layout<Ret> where
    NonNull<c_void>: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ReprC,
    Ret: ReprC,
    Ret: ReprC
{ pub env_ptr: <NonNull<c_void> as ReprC>::CLayout, pub call: <unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout, pub release: <unsafe extern "C" fn(env_ptr: NonNull<c_void>) as ReprC>::CLayout, pub retain: <Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)> as ReprC>::CLayout, }
This is supported on feature="alloc" only.

Fields

env_ptr: <NonNull<c_void> as ReprC>::CLayout
This is supported on feature="alloc" only.
call: <unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout
This is supported on feature="alloc" only.
release: <unsafe extern "C" fn(env_ptr: NonNull<c_void>) as ReprC>::CLayout
This is supported on feature="alloc" only.
retain: <Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)> as ReprC>::CLayout
This is supported on feature="alloc" only.

Trait Implementations

impl<Ret> CType for ArcDynFn0<Ret> where
    <NonNull<c_void> as ReprC>::CLayout: CType,
    <unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout: CType,
    <unsafe extern "C" fn(env_ptr: NonNull<c_void>) as ReprC>::CLayout: CType,
    <Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)> as ReprC>::CLayout: CType,
    Ret: ReprC,
    NonNull<c_void>: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ReprC,
    Ret: ReprC,
    Ret: ReprC
[src]

type OPAQUE_KIND = Concrete

impl<Ret> Clone for ArcDynFn0<Ret> where
    NonNull<c_void>: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ReprC,
    Ret: ReprC,
    Ret: ReprC
[src]

impl<Ret> Copy for ArcDynFn0<Ret> where
    NonNull<c_void>: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ReprC,
    Ret: ReprC,
    Ret: ReprC
[src]

impl<Ret> ReprC for ArcDynFn0<Ret> where
    NonNull<c_void>: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ReprC,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ReprC,
    Ret: ReprC,
    Ret: ReprC
[src]

type CLayout = Self

The CType having the same layout as Self.

Auto Trait Implementations

impl<Ret> !RefUnwindSafe for ArcDynFn0<Ret>

impl<Ret> !Send for ArcDynFn0<Ret>

impl<Ret> !Sync for ArcDynFn0<Ret>

impl<Ret> !Unpin for ArcDynFn0<Ret>

impl<Ret> !UnwindSafe for ArcDynFn0<Ret>

Blanket Implementations

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

impl<T> AsOut<T> for T where
    T: Copy

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> ManuallyDropMut for T

type Ret = ManuallyDrop<T>

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.