Skip to main content

zenith_core/ast/
span.rs

1//! Source-location span type.
2
3/// A source-location span (byte offsets into the original UTF-8 source).
4///
5/// Named `Span` — distinct from [`super::TextSpan`], which represents a text content run.
6#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7pub struct Span {
8    /// Byte offset of the first character (inclusive).
9    pub start: usize,
10    /// Byte offset past the last character (exclusive).
11    pub end: usize,
12}