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
slice: Slice
annotations: Vec<Annotation>
main_annotation_pos: Option<usize>
Index of an Annotation to be used as a main one in the snippet (for the header part).
title: Option<TitleAnnotation>
fold: Option<bool>
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]
impl Debug for Snippet[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Snippet[src]
fn clone(&self) -> Snippet[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more