Struct proc_macro::bridge::closure::Closure
source · #[repr(C)]pub struct Closure<'a, A, R> {
call: unsafe extern "C" fn(_: *mut Env, _: A) -> R,
env: *mut Env,
_marker: PhantomData<*mut &'a mut ()>,
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Fields§
§call: unsafe extern "C" fn(_: *mut Env, _: A) -> R
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)env: *mut Env
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)_marker: PhantomData<*mut &'a mut ()>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, A, R> RefUnwindSafe for Closure<'a, A, R>
impl<'a, A, R> !Send for Closure<'a, A, R>
impl<'a, A, R> !Sync for Closure<'a, A, R>
impl<'a, A, R> Unpin for Closure<'a, A, R>
impl<'a, A, R> UnwindSafe for Closure<'a, A, R>
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