pub trait GetModule {
    type Error: Debug;

    // Required method
    fn get_module_by_id(
        &self,
        id: &ModuleId
    ) -> Result<Option<CompiledModule>, Self::Error>;
}
Expand description

A persistent storage that can fetch the bytecode for a given module id TODO: do we want to implement this in a way that allows clients to cache struct layouts?

Required Associated Types§

Required Methods§

source

fn get_module_by_id( &self, id: &ModuleId ) -> Result<Option<CompiledModule>, Self::Error>

Implementors§

source§

impl<R: ModuleResolver> GetModule for ModuleCache<R>

§

type Error = Error