HashPath

Trait HashPath 

Source
pub trait HashPath {
    // Required method
    fn hashed_path(self, depth: usize) -> PathBuf;
}
Expand description

Create a relative path from a hash with a given depth, such that for the given depth, those beginning values of the hash are sub-directories.

Required Methods§

Source

fn hashed_path(self, depth: usize) -> PathBuf

Get the path object from the hash with the requested sub-directory depth

Implementors§

Source§

impl<T> HashPath for T
where T: AsRef<[u8]> + IntoIterator, T::Item: LowerHex,