pub enum DisplayRawLine {
    Origin {
        path: String,
        pos: Option<(usize, usize)>,
        header_type: DisplayHeaderType,
    },
    Annotation {
        annotation: Annotation,
        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

Fields

§path: String
§pos: Option<(usize, usize)>
§header_type: DisplayHeaderType

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

§

Annotation

Fields

§annotation: Annotation
§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.

An annotation line which is not part of any snippet.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.