Struct ketos::lexer::SpanDisplay [] [src]

pub struct SpanDisplay<'a> {
    pub filename: Option<&'a str>,
    pub line: usize,
    pub col: usize,
    pub source: &'a str,
    pub highlight: String,
}

Produced by highlight_span to help in printing a line of code with a span highlighted.

Fields

Filename

Line number

Column offset

Line of source code

Highlighting string

Trait Implementations

impl<'a> Clone for SpanDisplay<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for SpanDisplay<'a>
[src]

Formats the value using the given formatter.