#[repr(C)]pub struct TypedClosureHeader {
pub header: HeapHeader,
pub function_id: u32,
pub type_id: u32,
}Expand description
Heap-allocated closure. The HeapHeader is at offset 0; captures follow
the function_id/type_id pair at offset 16.
This is a layout marker used by JIT/VM codegen — captures are not declared
as Rust fields because their number and types are only known per
ClosureTypeId.
Fields§
§header: HeapHeader§function_id: u32§type_id: u32Auto Trait Implementations§
impl !Freeze for TypedClosureHeader
impl RefUnwindSafe for TypedClosureHeader
impl Send for TypedClosureHeader
impl Sync for TypedClosureHeader
impl Unpin for TypedClosureHeader
impl UnsafeUnpin for TypedClosureHeader
impl UnwindSafe for TypedClosureHeader
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