Trait mun_memory::TypeMemory[][src]

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[src]

Returns the memory layout of this type.

fn is_stack_allocated(&self) -> bool[src]

Returns whether the memory is stack-allocated.

Loading content...

Implementors

Loading content...