Enum annotate_snippets::display_list::DisplayLine
[−]
[src]
pub enum DisplayLine {
Raw(String),
EmptySource,
Source {
lineno: usize,
inline_marks: Vec<DisplayMark>,
content: String,
},
Annotation {
inline_marks: Vec<DisplayMark>,
range: (usize, usize),
label: String,
annotation_type: DisplayAnnotationType,
},
Fold,
}Variants
Raw(String)EmptySourceSourceFields of Source
lineno: usize | |
inline_marks: Vec<DisplayMark> | |
content: String |
AnnotationFields of Annotation
inline_marks: Vec<DisplayMark> | |
range: (usize, usize) | |
label: String | |
annotation_type: DisplayAnnotationType |
Fold
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 !=.