End is equivalent to Range().End, but should be preferred if only the end of the range is needed.
()
| 1819 | // End is equivalent to Range().End, but should be preferred if only the end of |
| 1820 | // the range is needed. |
| 1821 | func (gap GapIterator) End() Key { |
| 1822 | if ns := gap.NextSegment(); ns.Ok() { |
| 1823 | return ns.Start() |
| 1824 | } |
| 1825 | return Functions{}.MaxKey() |
| 1826 | } |
| 1827 | |
| 1828 | // IsEmpty returns true if the iterated gap is empty (that is, the "gap" is |
| 1829 | // between two adjacent segments.) |
no test coverage detected