Struct arret_runtime::boxed::Record [−][src]
#[repr(C, align(16))]pub struct Record { /* fields omitted */ }
User-defined record type
Implementations
impl Record[src]
impl Record[src]pub const MAX_INLINE_BYTES: usize[src]
Maximum number of bytes that can be stored directly in a box
pub const EXTERNAL_INLINE_LEN: u8[src]
Inline byte length used for external vectors
pub fn new(
heap: &mut impl AsHeap,
class_id: RecordClassId,
data: RecordData
) -> Gc<Record>[src]
heap: &mut impl AsHeap,
class_id: RecordClassId,
data: RecordData
) -> Gc<Record>
Constructs a new record of the given class and initialises it with the passed data
pub fn storage_for_data_layout(data_layout: Option<Layout>) -> RecordStorage[src]
Returns the storage for given data layout
pub fn class_id(&self) -> RecordClassId[src]
Returns the class ID for the record
pub fn field_values<'cm>(&self, heap: &'cm Heap) -> FieldValueIter<'cm>ⓘNotable traits for FieldValueIter<'cm>
impl<'cm> Iterator for FieldValueIter<'cm> type Item = FieldValue;[src]
Notable traits for FieldValueIter<'cm>
impl<'cm> Iterator for FieldValueIter<'cm> type Item = FieldValue;Returns an iterator over the record’s field values
Trait Implementations
impl HashInHeap for Record[src]
impl HashInHeap for Record[src]fn hash_in_heap<H: Hasher>(&self, heap: &Heap, state: &mut H)[src]
impl PartialEqInHeap for Record[src]
impl PartialEqInHeap for Record[src]