Type Alias Span

Source
pub type Span = Option<(usize, usize, usize, usize)>;
Expand description

Start and end positions of a node in a code in terms of rows and columns.

The first and second fields represent the row and column associated to the start position of a node.

The third and fourth fields represent the row and column associated to the end position of a node.

Aliased Type§

pub enum Span {
    None,
    Some((usize, usize, usize, usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some((usize, usize, usize, usize))

Some value of type T.