Skip to main content

Span

Type Alias Span 

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

Span for tokens or AST nodes, a range of byte offsets from the start of the source

Aliased Type§

pub 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).