Enum annotate_snippets::display_list::DisplayRawLine
[−]
[src]
pub enum DisplayRawLine { Origin { path: String, pos: Option<(usize, usize)>, header_type: DisplayHeaderType, }, Annotation { annotation: Annotation, source_aligned: bool, continuation: bool, }, }
Raw line - a line which does not have the lineno
part and is not considered
a part of the snippet.
Variants
Origin
A line which provides information about the location of the given slice in the project structure.
Fields of Origin
path: String | |
pos: Option<(usize, usize)> | |
header_type: DisplayHeaderType |
Annotation
An annotation line which is not part of any snippet.
Fields of Annotation
annotation: Annotation | |
source_aligned: bool | If set to |
continuation: bool | If set to |
Trait Implementations
impl Debug for DisplayRawLine
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for DisplayRawLine
[src]
fn clone(&self) -> DisplayRawLine
[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 DisplayRawLine
[src]
fn eq(&self, __arg_0: &DisplayRawLine) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DisplayRawLine) -> bool
[src]
This method tests for !=
.