Struct arret_runtime::boxed::RecordData[][src]

#[repr(C)]
pub struct RecordData { /* fields omitted */ }

Allocation to store a record’s data

Implementations

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]

Auto Trait Implementations

impl RefUnwindSafe for RecordData

impl !Send for RecordData

impl !Sync for RecordData

impl Unpin for RecordData

impl UnwindSafe for RecordData

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.