pub trait ModuleReader: Send + Sync {
// Required methods
fn scheme(&self) -> &str;
fn has_hierarchical_uris(&self) -> bool;
fn is_local(&self) -> bool;
fn is_globbable(&self) -> bool;
fn read(&self, uri: &str) -> Result<String, String>;
// Provided method
fn list(&self, uri: &str) -> Result<Vec<PathElement>, String> { ... }
}Expand description
A custom module reader that can resolve modules by URI scheme.
Required Methods§
Sourcefn has_hierarchical_uris(&self) -> bool
fn has_hierarchical_uris(&self) -> bool
Whether URIs of this scheme are hierarchical.
Sourcefn is_globbable(&self) -> bool
fn is_globbable(&self) -> bool
Whether this reader supports globbing.