Struct safer_ffi::closure::arc::ArcDynFn1_Layout
source · #[repr(C)]pub struct ArcDynFn1_Layout<Ret, A1>where
Ret: ReprC + ReprC,
A1: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> 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>, _: A1) -> 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(A1) -> Ret>
Fields§
§env_ptr: CLayoutOf<NonNull<c_void>>
§call: CLayoutOf<unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> 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§
source§impl<Ret, A1> CType for ArcDynFn1_Layout<Ret, A1>where
Ret: ReprC + ReprC,
A1: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret, A1> CType for ArcDynFn1_Layout<Ret, A1>where Ret: ReprC + ReprC, A1: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
type OPAQUE_KIND = Concrete
fn short_name() -> String
fn define_self__impl( language: &dyn HeaderLanguage, definer: &mut dyn Definer ) -> Result<()>
fn zeroed() -> Self
fn define_self( language: &dyn HeaderLanguage, definer: &mut dyn Definer ) -> Result<()>
fn name(_language: &dyn HeaderLanguage) -> String
fn name_wrapping_var(language: &dyn HeaderLanguage, var_name: &str) -> String
source§fn csharp_marshaler() -> Option<String>
fn csharp_marshaler() -> Option<String>
Optional marshaler attached to the type (e.g.,
[MarshalAs(UnmanagedType.FunctionPtr)]
)source§impl<Ret, A1> Clone for ArcDynFn1_Layout<Ret, A1>where
Ret: ReprC + ReprC,
A1: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret, A1> Clone for ArcDynFn1_Layout<Ret, A1>where Ret: ReprC + ReprC, A1: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
source§impl<Ret, A1> ReprC for ArcDynFn1_Layout<Ret, A1>where
Ret: ReprC + ReprC,
A1: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret, A1> ReprC for ArcDynFn1_Layout<Ret, A1>where Ret: ReprC + ReprC, A1: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret, A1> Copy for ArcDynFn1_Layout<Ret, A1>where Ret: ReprC + ReprC, A1: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>, _: A1) -> Ret: ConcreteReprC, unsafe extern "C" fn(env_ptr: NonNull<c_void>): ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
Auto Trait Implementations§
impl<Ret, A1> !RefUnwindSafe for ArcDynFn1_Layout<Ret, A1>
impl<Ret, A1> !Send for ArcDynFn1_Layout<Ret, A1>
impl<Ret, A1> !Sync for ArcDynFn1_Layout<Ret, A1>
impl<Ret, A1> !Unpin for ArcDynFn1_Layout<Ret, A1>
impl<Ret, A1> !UnwindSafe for ArcDynFn1_Layout<Ret, A1>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FitForCBox for T
impl<T> FitForCBox for T
§type CBoxWrapped = Box_<T>
type CBoxWrapped = Box_<T>
Available on crate feature
alloc
only.source§impl<T> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
fn manually_drop_mut<'__>(&'__ mut self) -> &'__ mut ManuallyDrop<T>
source§impl<T> UpcastAny for Twhere
T: 'static,
impl<T> UpcastAny for Twhere T: 'static,
source§fn upcast_any(&self) -> &(dyn Any + 'static)
fn upcast_any(&self) -> &(dyn Any + 'static)
Available on crate feature
headers
only.