Struct annotate_snippets::snippet::Slice
source · pub struct Slice {
pub source: String,
pub line_start: usize,
pub origin: Option<String>,
pub annotations: Vec<SourceAnnotation>,
pub fold: bool,
}Expand description
Structure containing the slice of text to be annotated and basic information about the location of the slice.
Fields§
§source: String§line_start: usize§origin: Option<String>§annotations: Vec<SourceAnnotation>§fold: boolIf set explicitly to true, the snippet will fold
parts of the slice that don’t contain any annotations.