1 2 3 4 5
use text_unit::{TextRange, TextUnit}; pub fn contains_offset_nonstrict(range: TextRange, offset: TextUnit) -> bool { range.start() <= offset && offset <= range.end() }