Struct arret_runtime::boxed::Record[][src]

#[repr(C, align(16))]
pub struct Record { /* fields omitted */ }

User-defined record type

Implementations

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]

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]

Returns an iterator over the record’s field values

Trait Implementations

impl Boxed for Record[src]

impl ConstTagged for Record[src]

impl Debug for Record[src]

impl DistinctTagged for Record[src]

impl Drop for Record[src]

impl HashInHeap for Record[src]

impl PartialEqInHeap for Record[src]

Auto Trait Implementations

impl RefUnwindSafe for Record

impl Send for Record

impl Sync for Record

impl Unpin for Record

impl UnwindSafe for Record

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.