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: Option<&'a str>
Filename
line: usize
Line number
col: usize
Column offset
source: &'a str
Line of source code
highlight: String
Highlighting string
Trait Implementations
impl<'a> Clone for SpanDisplay<'a>
[src]
fn clone(&self) -> SpanDisplay<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more