Struct safer_ffi::closure::boxed::BoxDynFnMut0_Layout
source · #[repr(C)]pub struct BoxDynFnMut0_Layout<Ret>where
Ret: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,{
pub env_ptr: CLayoutOf<NonNull<c_void>>,
pub call: CLayoutOf<Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>>,
pub free: CLayoutOf<Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>>,
}
Available on crate feature
alloc
only.Expand description
Box<dyn 'static + Send + FnMut() -> Ret>
Fields§
§env_ptr: CLayoutOf<NonNull<c_void>>
§call: CLayoutOf<Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>>
§free: CLayoutOf<Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>>
Trait Implementations§
source§impl<Ret> CType for BoxDynFnMut0_Layout<Ret>where
Ret: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret> CType for BoxDynFnMut0_Layout<Ret>where Ret: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: 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> Clone for BoxDynFnMut0_Layout<Ret>where
Ret: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret> Clone for BoxDynFnMut0_Layout<Ret>where Ret: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
source§impl<Ret> ReprC for BoxDynFnMut0_Layout<Ret>where
Ret: ReprC + ReprC,
NonNull<c_void>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC,
Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret> ReprC for BoxDynFnMut0_Layout<Ret>where Ret: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
impl<Ret> Copy for BoxDynFnMut0_Layout<Ret>where Ret: ReprC + ReprC, NonNull<c_void>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret>: ConcreteReprC, Option<unsafe extern "C" fn(env_ptr: NonNull<c_void>)>: ConcreteReprC,
Auto Trait Implementations§
impl<Ret> !RefUnwindSafe for BoxDynFnMut0_Layout<Ret>
impl<Ret> !Send for BoxDynFnMut0_Layout<Ret>
impl<Ret> !Sync for BoxDynFnMut0_Layout<Ret>
impl<Ret> !Unpin for BoxDynFnMut0_Layout<Ret>
impl<Ret> !UnwindSafe for BoxDynFnMut0_Layout<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.