Skip to main content

GetSourceLocInfoByHash

Trait GetSourceLocInfoByHash 

Source
pub trait GetSourceLocInfoByHash {
    // Required method
    fn get_source_loc_info_by_hash(
        &self,
        hash: HashId,
    ) -> Option<SourceLocInfo<'_>>;
}
Expand description

Trait that can fetch for a file by it’s hash value.

Required Methods§

Source

fn get_source_loc_info_by_hash(&self, hash: HashId) -> Option<SourceLocInfo<'_>>

Get a source string by it’s hash value.

Implementors§