#[repr(C)]pub struct ArcDynFn1<Ret, A1>where
Ret: ReprC,
A1: ReprC,{ /* private fields */ }
Available on crate feature
alloc
only.Expand description
Implementations§
Trait Implementations§
source§impl<F, Ret, A1> From<Arc<F>> for ArcDynFn1<Ret, A1>where
Ret: ReprC,
A1: ReprC,
F: Fn(A1) -> Ret + Send + Sync + 'static,
impl<F, Ret, A1> From<Arc<F>> for ArcDynFn1<Ret, A1>where Ret: ReprC, A1: ReprC, F: Fn(A1) -> Ret + Send + Sync + 'static,
source§impl<Ret, A1> ReprC for ArcDynFn1<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<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> Send for ArcDynFn1<Ret, A1>where Ret: ReprC, A1: ReprC,
Arc<dyn Send + Sync + ...> : Send
impl<Ret, A1> Sync for ArcDynFn1<Ret, A1>where Ret: ReprC, A1: ReprC,
Arc<dyn Send + Sync + ...> : Sync
Auto Trait Implementations§
impl<Ret, A1> RefUnwindSafe for ArcDynFn1<Ret, A1>
impl<Ret, A1> Unpin for ArcDynFn1<Ret, A1>
impl<Ret, A1> UnwindSafe for ArcDynFn1<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.