If we want to know whether two byte positions are in the same file, we don't need to clone and compare `Lrc<SourceFile>`; we can just get their indices and compare those instead. |
||
|---|---|---|
| .. | ||
| spans | ||
| counters.rs | ||
| graph.rs | ||
| mod.rs | ||
| query.rs | ||
| spans.rs | ||
| tests.rs | ||
If we want to know whether two byte positions are in the same file, we don't need to clone and compare `Lrc<SourceFile>`; we can just get their indices and compare those instead. |
||
|---|---|---|
| .. | ||
| spans | ||
| counters.rs | ||
| graph.rs | ||
| mod.rs | ||
| query.rs | ||
| spans.rs | ||
| tests.rs | ||