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

Origin

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

Fields of Origin

path: &'a strpos: Option<(usize, usize)>header_type: DisplayHeaderType
Annotation

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

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.