Enum annotate_snippets::display_list::DisplayLine
[−]
[src]
pub enum DisplayLine { Source { lineno: Option<usize>, inline_marks: Vec<DisplayMark>, line: DisplaySourceLine, }, Fold { inline_marks: Vec<DisplayMark>, }, Raw(DisplayRawLine), }
A single line used in DisplayList
.
Variants
Source
A line with lineno
portion of the slice.
Fields of Source
lineno: Option<usize> | |
inline_marks: Vec<DisplayMark> | |
line: DisplaySourceLine |
Fold
A line indicating a folded part of the slice.
Fields of Fold
inline_marks: Vec<DisplayMark> |
Raw(DisplayRawLine)
A line which is displayed outside of slices.
Trait Implementations
impl Debug for DisplayLine
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DisplayLine
[src]
fn clone(&self) -> DisplayLine
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DisplayLine
[src]
fn eq(&self, __arg_0: &DisplayLine) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DisplayLine) -> bool
[src]
This method tests for !=
.