Enum annotate_snippets::display_list::DisplaySourceLine [] [src]

pub enum DisplaySourceLine {
    Content {
        text: String,
        range: (usize, usize),
    },
    Annotation {
        annotation: Annotation,
        range: (usize, usize),
        annotation_type: DisplayAnnotationType,
        annotation_part: DisplayAnnotationPart,
    },
    Empty,
}

A source line.

Variants

A line with the content of the Slice.

Fields of Content

An annotation line which is displayed in context of the slice.

Fields of Annotation

An empty source line.

Trait Implementations

impl Debug for DisplaySourceLine
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for DisplaySourceLine
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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