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

Returns the root namespace of this library.

Returns the version number of this library.

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.

Implementors