Skip to main content

GlobalStateProvider

Trait GlobalStateProvider 

Source
pub trait GlobalStateProvider {
    // Required methods
    fn get_memory(&self) -> &[u8] ;
    fn get_memory_mut(&mut self) -> &mut [u8] ;
    fn resolve(&self, module: &str, field: &str) -> Option<NativeEntry>;
}

Required Methods§

Source

fn get_memory(&self) -> &[u8]

Source

fn get_memory_mut(&mut self) -> &mut [u8]

Source

fn resolve(&self, module: &str, field: &str) -> Option<NativeEntry>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§