1 2 3 4 5 6 7
use crate::records::location::Location; impl Location { pub fn encloses(&self, l: &Location) -> bool { self.begin <= l.begin && self.end >= l.end } }