Skip to main content

GetSourceStrByHash

Trait GetSourceStrByHash 

Source
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§

Source

fn get_str_by_hash(&self, hash: u64) -> Option<&str>

Get a source string by it’s hash value.

Source

fn get_filename_by_hash(&self, hash: u64) -> Option<PathBuf>

Get filename by hash

Implementors§