[][src]Trait mun_memory::TypeMemory

pub trait TypeMemory: Send + Sync {
    fn layout(&self) -> Layout;
fn is_stack_allocated(&self) -> bool; }

A trait used to obtain a type's memory description.

Required methods

fn layout(&self) -> Layout

Returns the memory layout of this type.

fn is_stack_allocated(&self) -> bool

Returns whether the memory is stack-allocated.

Loading content...

Implementors

Loading content...