#[repr(C)]pub struct RefDynFnMut0_Layout<'lt, Ret> where
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC, {
pub env_ptr: <NonNull<c_void> as ReprC>::CLayout,
pub call: <unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout,
pub _lt: <PhantomData<&'lt ()> as ReprC>::CLayout,
}
Fields
env_ptr: <NonNull<c_void> as ReprC>::CLayout
call: <unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout
_lt: <PhantomData<&'lt ()> as ReprC>::CLayout
Trait Implementations
sourceimpl<'lt, Ret> CType for RefDynFnMut0<'lt, Ret> where
<NonNull<c_void> as ReprC>::CLayout: CType,
<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout: CType,
<PhantomData<&'lt ()> as ReprC>::CLayout: CType,
Ret: ReprC,
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
impl<'lt, Ret> CType for RefDynFnMut0<'lt, Ret> where
<NonNull<c_void> as ReprC>::CLayout: CType,
<unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret as ReprC>::CLayout: CType,
<PhantomData<&'lt ()> as ReprC>::CLayout: CType,
Ret: ReprC,
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
sourcefn c_short_name_fmt(fmt: &mut Formatter<'_>) -> Result
fn c_short_name_fmt(fmt: &mut Formatter<'_>) -> Result
A short-name description of the type, mainly used to fill “placeholders” such as when monomorphising generics structs or arrays. Read more
sourcefn c_define_self(definer: &mut dyn Definer) -> Result<()>
fn c_define_self(definer: &mut dyn Definer) -> Result<()>
Necessary one-time code for CType::c_var
()
to make sense. Read more
sourcefn c_var_fmt(fmt: &mut Formatter<'_>, var_name: &str) -> Result
fn c_var_fmt(fmt: &mut Formatter<'_>, var_name: &str) -> Result
The core method of the trait: it provides the implementation to be
used by CType::c_var
, by bringing a Formatter
in scope. Read more
type OPAQUE_KIND = Concrete
sourcefn c_short_name() -> ImplDisplay<Self>
fn c_short_name() -> ImplDisplay<Self>
sourceimpl<'lt, Ret> Clone for RefDynFnMut0<'lt, Ret> where
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
impl<'lt, Ret> Clone for RefDynFnMut0<'lt, Ret> where
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
sourceimpl<'lt, Ret> ReprC for RefDynFnMut0<'lt, Ret> where
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
impl<'lt, Ret> ReprC for RefDynFnMut0<'lt, Ret> where
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
impl<'lt, Ret> Copy for RefDynFnMut0<'lt, Ret> where
NonNull<c_void>: ReprC,
unsafe extern "C" fn(env_ptr: NonNull<c_void>) -> Ret: ReprC,
PhantomData<&'lt ()>: ReprC,
Ret: ReprC,
Ret: ReprC,
Auto Trait Implementations
impl<'lt, Ret> !RefUnwindSafe for RefDynFnMut0<'lt, Ret>
impl<'lt, Ret> !Send for RefDynFnMut0<'lt, Ret>
impl<'lt, Ret> !Sync for RefDynFnMut0<'lt, Ret>
impl<'lt, Ret> !Unpin for RefDynFnMut0<'lt, Ret>
impl<'lt, Ret> !UnwindSafe for RefDynFnMut0<'lt, Ret>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ManuallyDropMut for T
impl<T> ManuallyDropMut for T
type Ret = ManuallyDrop<T>
fn manually_drop_mut(&'__ mut self) -> &'__ mut ManuallyDrop<T>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more