#[repr(C)]
pub struct ArcDynFn0_Layout<Ret>where
    Ret: ReprC,
    Ret: ReprC,
    NonNull<c_void>: ConcreteReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ConcreteReprC,
    unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC,
    Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
{ pub env_ptr: CLayoutOf<NonNull<c_void>>, pub call: CLayoutOf<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>, pub release: CLayoutOf<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>, pub retain: CLayoutOf<Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>>, }
Available on crate feature alloc only.
Expand description

Arc<dyn Send + Sync + Fn() -> Ret>

Fields

env_ptr: CLayoutOf<NonNull<c_void>>call: CLayoutOf<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>release: CLayoutOf<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>retain: CLayoutOf<Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>>

Trait Implementations

Optional marshaler attached to the type (e.g., [MarshalAs(UnmanagedType.FunctionPtr)]) Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
The CType having the same layout as Self.
Sanity checks that can be performed on an instance of the CType layout. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Applies the Compat adapter by value. Read more
Applies the Compat adapter by shared reference. Read more
Applies the Compat adapter by mutable reference. Read more
Available on crate feature alloc only.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Available on crate feature headers only.