Struct arret_runtime::boxed::RecordData [−][src]
#[repr(C)]pub struct RecordData { /* fields omitted */ }
Allocation to store a record’s data
Implementations
impl RecordData[src]
impl RecordData[src]pub fn empty() -> Self[src]
Constructs an empty record data
pub fn alloc(data_layout: Option<Layout>) -> Self[src]
Allocates record data for the given layout
pub fn as_ptr(&self) -> *const u8[src]
Returns a pointer to the record data
pub fn as_mut_ptr(&mut self) -> *mut u8[src]
Returns a mutable pointer to the record data
pub fn layout(&self) -> Option<Layout>[src]
Returns the layout for the record data, or None if the data is empty
pub fn alloc_layout_to_compact(alloc_layout: Option<Layout>) -> u64[src]
Converts an alloc::Layout to a compact representation
This is intended for use by the compiler.
Trait Implementations
impl Drop for RecordData[src]
impl Drop for RecordData[src]