mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
5 lines
173 B
Rust
5 lines
173 B
Rust
use text_unit::{TextRange, TextUnit};
|
|
|
|
pub fn contains_offset_nonstrict(range: TextRange, offset: TextUnit) -> bool {
|
|
range.start() <= offset && offset <= range.end()
|
|
}
|