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

pub struct Slice {
    pub source: String,
    pub line_start: usize,
    pub origin: Option<String>,
}

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

Fields

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