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

pub enum DisplayLine {
    Annotation {
        label: Vec<DisplayTextFragment>,
        id: Option<String>,
        aligned: bool,
        annotation_type: DisplayAnnotationType,
    },
    Origin {
        path: String,
        pos: Option<(usize, usize)>,
        header_type: DisplayHeaderType,
    },
    EmptySource,
    Source {
        lineno: usize,
        inline_marks: Vec<DisplayMark>,
        content: String,
        range: (usize, usize),
    },
    SourceAnnotation {
        inline_marks: Vec<DisplayMark>,
        range: (usize, usize),
        label: Vec<DisplayTextFragment>,
        annotation_type: DisplayAnnotationType,
        annotation_part: DisplayAnnotationPart,
    },
    Fold {
        inline_marks: Vec<DisplayMark>,
    },
}

Variants

Fields of Annotation

Fields of Origin

Fields of Source

Fields of SourceAnnotation

Fields of Fold

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