slicey

Type Alias Span

Source
pub type Span = Range<usize>;
Expand description

Represents a range in a source text. Span is a shorthand for a range of indices in the source, defined as Range<usize>.

Aliased Type§

struct Span {
    pub start: usize,
    pub end: usize,
}

Fields§

§start: usize

The lower bound of the range (inclusive).

§end: usize

The upper bound of the range (exclusive).