Enum annotate_snippets::display_list::DisplayLine [] [src]

pub enum DisplayLine {
    Source {
        lineno: Option<usize>,
        inline_marks: Vec<DisplayMark>,
        line: DisplaySourceLine,
    },
    Fold {
        inline_marks: Vec<DisplayMark>,
    },
    Raw(DisplayRawLine),
}

A single line used in DisplayList.

Variants

A line with lineno portion of the slice.

Fields of Source

A line indicating a folded part of the slice.

Fields of Fold

A line which is displayed outside of slices.

Trait Implementations

impl Debug for DisplayLine
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DisplayLine
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for DisplayLine
[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

impl Send for DisplayLine

impl Sync for DisplayLine