pub trait GetSourceStrByHash {
// Required methods
fn get_str_by_hash(&self, hash: u64) -> Option<&str>;
fn get_filename_by_hash(&self, hash: u64) -> Option<PathBuf>;
}Expand description
Trait that can fetch for a file by it’s hash value.
Required Methods§
Sourcefn get_str_by_hash(&self, hash: u64) -> Option<&str>
fn get_str_by_hash(&self, hash: u64) -> Option<&str>
Get a source string by it’s hash value.
Sourcefn get_filename_by_hash(&self, hash: u64) -> Option<PathBuf>
fn get_filename_by_hash(&self, hash: u64) -> Option<PathBuf>
Get filename by hash