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

A line which provides information about the location of the given slice in the project structure.

Fields of Origin

An annotation line which is not part of any snippet.

Fields of Annotation

If set to true, the annotation will be aligned to the lineno delimiter of the snippet.

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

impl Debug for DisplayRawLine
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DisplayRawLine
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DisplayRawLine
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

Auto Trait Implementations