Trait miden_core::Library
source · [−]pub trait Library {
fn root_ns(&self) -> &str;
fn version(&self) -> &str;
fn get_module_source(&self, module_path: &str) -> Result<&str, LibraryError>;
}
Expand description
TODO: add docs
Required Methods
fn get_module_source(&self, module_path: &str) -> Result<&str, LibraryError>
fn get_module_source(&self, module_path: &str) -> Result<&str, LibraryError>
Returns the source code of the module located at the specified path.
Errors
Returns an error if the modules for the specified path does not exist in this library.