Struct annotate_snippets::snippet::Snippet [] [src]

pub struct Snippet {
    pub slice: Slice,
    pub annotations: Vec<Annotation>,
    pub main_annotation_pos: Option<usize>,
    pub title: Option<TitleAnnotation>,
    pub fold: Option<bool>,
}

Primary structure provided for formatting

Fields

Index of an Annotation to be used as a main one in the snippet (for the header part).

If set explicitly to true, the snippet will fold parts of the slice that don't contain any annotations.

Trait Implementations

impl From<Snippet> for DisplayList
[src]

[src]

Performs the conversion.

impl Debug for Snippet
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Snippet
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Snippet
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Snippet

impl Sync for Snippet