Enum annotate_snippets::display_list::DisplaySourceLine
[−]
[src]
pub enum DisplaySourceLine {
Content {
text: String,
range: (usize, usize),
},
Annotation {
annotation: Annotation,
range: (usize, usize),
annotation_type: DisplayAnnotationType,
annotation_part: DisplayAnnotationPart,
},
Empty,
}A source line.
Variants
ContentA line with the content of the Slice.
Fields of Content
text: String | |
range: (usize, usize) |
AnnotationAn annotation line which is displayed in context of the slice.
Fields of Annotation
annotation: Annotation | |
range: (usize, usize) | |
annotation_type: DisplayAnnotationType | |
annotation_part: DisplayAnnotationPart |
EmptyAn empty source line.
Trait Implementations
impl Debug for DisplaySourceLine[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for DisplaySourceLine[src]
fn clone(&self) -> DisplaySourceLine[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 DisplaySourceLine[src]
fn eq(&self, __arg_0: &DisplaySourceLine) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &DisplaySourceLine) -> bool[src]
This method tests for !=.