contains method
Returns whether or not this interval contains the given instant.
instant: Instant to test.
Returns: True if this interval contains the given instant; false otherwise.
Implementation
bool contains(Instant instant) => instant >= _start && instant < _end;