Enum annotate_snippets::display_list::DisplayLine
[−]
[src]
pub enum DisplayLine {
Annotation {
label: Vec<DisplayTextFragment>,
id: Option<String>,
aligned: bool,
annotation_type: DisplayAnnotationType,
},
Origin {
path: String,
pos: Option<(usize, usize)>,
header_type: DisplayHeaderType,
},
EmptySource,
Source {
lineno: usize,
inline_marks: Vec<DisplayMark>,
content: String,
range: (usize, usize),
},
SourceAnnotation {
inline_marks: Vec<DisplayMark>,
range: (usize, usize),
label: Vec<DisplayTextFragment>,
annotation_type: DisplayAnnotationType,
annotation_part: DisplayAnnotationPart,
},
Fold {
inline_marks: Vec<DisplayMark>,
},
}Variants
AnnotationFields of Annotation
label: Vec<DisplayTextFragment> | |
id: Option<String> | |
aligned: bool | |
annotation_type: DisplayAnnotationType |
OriginFields of Origin
path: String | |
pos: Option<(usize, usize)> | |
header_type: DisplayHeaderType |
EmptySourceSourceFields of Source
lineno: usize | |
inline_marks: Vec<DisplayMark> | |
content: String | |
range: (usize, usize) |
SourceAnnotationFields of SourceAnnotation
inline_marks: Vec<DisplayMark> | |
range: (usize, usize) | |
label: Vec<DisplayTextFragment> | |
annotation_type: DisplayAnnotationType | |
annotation_part: DisplayAnnotationPart |
FoldFields of Fold
inline_marks: Vec<DisplayMark> |
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 !=.