Skip to main content

luaur_ast/methods/
location_location_location_alt_d.rs

1//! `Location::Location(const Location& begin, const Location& end)` — Location.h:86.
2
3use crate::records::location::Location;
4
5impl Location {
6    /// Spans from one location's start to another's end.
7    pub fn between(begin: Location, end: Location) -> Location {
8        Location {
9            begin: begin.begin,
10            end: end.end,
11        }
12    }
13}