Struct Span
pub struct Span { pub start_line: usize, pub start_col: usize, pub end_line: usize, pub end_col: usize, pub range: Range<usize> }
The position of a node in the template source
Fields
start_line: usizeLine the span starts on, 1-based
start_col: usizeColumn the span starts on, 0-based
end_line: usizeLine the span ends on, 1-based
end_col: usizeColumn the span ends on, 0-based
range: Range<usize>Byte range of the span in the template source
Trait Implementations
impl Clone for Span
fn clone(&self) -> Self
impl Debug for Span
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Span
fn default() -> Self
impl Display for Span
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Span
impl PartialEq for Span
fn eq(&self, other: &Self) -> bool