
# class Span(structclass(&#34;Span&#34;, (&#34;start&#34;, &#34;end&#34;))):
# Instead, we simply use slots for now.
class Span:
    &#34;&#34;&#34;
    Class that represents an offset range.
    &#34;&#34;&#34;
    __slots__ = [&#34;_start&#34;, &#34;_end&#34;]

    @support_annotation_or_set
    def __init__(self, start, end):
        &#34;&#34;&#34;
        Create a span of length end-start. The end offset must not be less than the start offset and both
        the start and end offset must be &gt;= 0.
