pub trait InstanceInternal {
// 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;
}
Expand description
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.