Available on crate feature
alloc
only.Expand description
Implementations
Trait Implementations
sourceimpl<F, Ret, A1> From<Arc<F>> for ArcDynFn1<Ret, A1>where
Ret: ReprC,
A1: ReprC,
F: Fn(A1) -> Ret,
F: Send + Sync + 'static,
impl<F, Ret, A1> From<Arc<F>> for ArcDynFn1<Ret, A1>where
Ret: ReprC,
A1: ReprC,
F: Fn(A1) -> Ret,
F: Send + Sync + 'static,
sourceimpl<Ret, A1> ReprC for ArcDynFn1<Ret, A1>where
Ret: ReprC,
A1: ReprC,
Ret: ReprC,
A1: 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,
A1: ReprC,
Ret: ReprC,
A1: 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CompatExt for T
impl<T> CompatExt for T
sourceimpl<T> FitForCBox for T
impl<T> FitForCBox for T
type CBoxWrapped = Box_<T>
type CBoxWrapped = Box_<T>
Available on crate feature
alloc
only.sourceimpl<T> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
fn manually_drop_mut(&'__ mut self) -> &'__ mut ManuallyDrop<T>
sourceimpl<T> UpcastAny for Twhere
T: 'static,
impl<T> UpcastAny for Twhere
T: 'static,
sourcefn upcast_any(&self) -> &(dyn Any + 'static)
fn upcast_any(&self) -> &(dyn Any + 'static)
Available on crate feature
headers
only.