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§
Sourcefn get_source_loc_info_by_hash(&self, hash: HashId) -> Option<SourceLocInfo<'_>>
fn get_source_loc_info_by_hash(&self, hash: HashId) -> Option<SourceLocInfo<'_>>
Get a source string by it’s hash value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".