Trait miette::SpanContents[][src]

pub trait SpanContents {
    fn data(&self) -> &[u8];
fn line(&self) -> usize;
fn column(&self) -> usize; }
Expand description

Contents of a Source covered by SourceSpan.

Includes line and column information to optimize highlight calculations.

Required methods

Reference to the data inside the associated span, in bytes.

The 0-indexed line in the associated Source where the data begins.

The 0-indexed column in the associated Source where the data begins, relative to line.

Implementors