pub enum DisplaySourceLine {
Content {
text: String,
range: (usize, usize),
},
Annotation {
annotation: Annotation,
range: (usize, usize),
annotation_type: DisplayAnnotationType,
annotation_part: DisplayAnnotationPart,
},
Empty,
}
Expand description
A source line.
Variants§
Content
A line with the content of the Slice.
Annotation
Fields
§
annotation: Annotation
§
annotation_type: DisplayAnnotationType
§
annotation_part: DisplayAnnotationPart
An annotation line which is displayed in context of the slice.
Empty
An empty source line.
Trait Implementations§
source§impl Clone for DisplaySourceLine
impl Clone for DisplaySourceLine
source§fn clone(&self) -> DisplaySourceLine
fn clone(&self) -> DisplaySourceLine
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