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