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