[−][src]Trait lucet_runtime_internals::instance::InstanceInternal
APIs that are internal, but useful to implementors of extension modules; you probably don't want this trait!
This is a trait rather than inherent impl
s in order to keep the lucet-runtime
API clean and
safe.
Required methods
fn alloc(&self) -> &Alloc
fn alloc_mut(&mut self) -> &mut Alloc
fn module(&self) -> &dyn Module
fn state(&self) -> &State
fn valid_magic(&self) -> bool
Implementors
impl InstanceInternal for Instance
[src]
fn alloc(&self) -> &Alloc
[src]
Get a reference to the instance's Alloc
.
fn alloc_mut(&mut self) -> &mut Alloc
[src]
Get a mutable reference to the instance's Alloc
.
fn module(&self) -> &dyn Module
[src]
Get a reference to the instance's Module
.
fn state(&self) -> &State
[src]
Get a reference to the instance's State
.
fn valid_magic(&self) -> bool
[src]
Check whether the instance magic is valid.