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
source: String
line_start: usize
origin: Option<String>
annotations: Vec<SourceAnnotation>
fold: bool
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more