pub enum DisplayLine {
Source {
lineno: Option<usize>,
inline_marks: Vec<DisplayMark>,
line: DisplaySourceLine,
},
Fold {
inline_marks: Vec<DisplayMark>,
},
Raw(DisplayRawLine),
}
Expand description
A single line used in DisplayList
.
Variants§
Source
A line with lineno
portion of the slice.
Fold
Fields
§
inline_marks: Vec<DisplayMark>
A line indicating a folded part of the slice.
Raw(DisplayRawLine)
A line which is displayed outside of slices.
Trait Implementations§
source§impl Clone for DisplayLine
impl Clone for DisplayLine
source§fn clone(&self) -> DisplayLine
fn clone(&self) -> DisplayLine
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more