Enum annotate_snippets::display_list::DisplayRawLine [−][src]
pub enum DisplayRawLine<'a> {
Origin {
path: &'a str,
pos: Option<(usize, usize)>,
header_type: DisplayHeaderType,
},
Annotation {
annotation: Annotation<'a>,
source_aligned: bool,
continuation: bool,
},
}
Expand description
Raw line - a line which does not have the lineno
part and is not considered
a part of the snippet.
Variants
A line which provides information about the location of the given slice in the project structure.
An annotation line which is not part of any snippet.
Fields of Annotation
annotation: Annotation<'a>
source_aligned: bool
If set to true
, the annotation will be aligned to the
lineno delimiter of the snippet.
continuation: bool
If set to true
, only the label of the Annotation
will be
displayed. It allows for a multiline annotation to be aligned
without displaing the meta information (type
and id
) to be
displayed on each line.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.