Doc for Store::retrieve_for_module()

This commit is contained in:
Matthias Beyer 2017-02-20 16:03:45 +01:00
parent 4e042e4de2
commit 8d855f4c78

View file

@ -562,6 +562,16 @@ impl Store {
}
/// Iterate over all StoreIds for one module name
///
/// # Returns
///
/// On success: An iterator over all entries in the module
///
/// On failure:
/// - RetrieveForModuleCallError(GlobError(EncodingError())) if the path string cannot be
/// encoded
/// - GRetrieveForModuleCallError(GlobError(lobError())) if the glob() failed.
///
pub fn retrieve_for_module(&self, mod_name: &str) -> Result<StoreIdIterator> {
let mut path = self.path().clone();
path.push(mod_name);