This adds invert_spans(spans, parent_span), which returns a vector of TimeSpans that represent the gaps between an input vector of TimeSpans spans that are contained by the TimeSpan parent_span.
This function has been used in a couple of different internal projects at Beacon and was mentioned in #10 a while ago.
This adds
invert_spans(spans, parent_span)
, which returns a vector of TimeSpans that represent the gaps between an input vector of TimeSpansspans
that are contained by the TimeSpanparent_span
.This function has been used in a couple of different internal projects at Beacon and was mentioned in #10 a while ago.
WIP - I still need to add tests