Struct annotate_snippets::snippet::Slice [] [src]

pub struct Slice {
    pub source: String,
    pub line_start: usize,
    pub origin: Option<String>,
    pub annotations: Vec<SourceAnnotation>,
    pub fold: bool,
}

Structure containing the slice of text to be annotated and basic information about the location of the slice.

Fields

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

Trait Implementations

impl Debug for Slice
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Slice
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Slice

impl Sync for Slice