Struct annotate_snippets::snippet::Snippet
source · pub struct Snippet<'a> {
pub title: Option<Annotation<'a>>,
pub footer: Vec<Annotation<'a>>,
pub slices: Vec<Slice<'a>>,
pub opt: FormatOptions,
}
Expand description
Primary structure provided for formatting
Fields§
§title: Option<Annotation<'a>>
§slices: Vec<Slice<'a>>
§opt: FormatOptions
Trait Implementations§
source§impl<'a> From<Snippet<'a>> for DisplayList<'a>
impl<'a> From<Snippet<'a>> for DisplayList<'a>
source§fn from(_: Snippet<'a>) -> DisplayList<'a>
fn from(_: Snippet<'a>) -> DisplayList<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Snippet<'a>
impl<'a> Send for Snippet<'a>
impl<'a> Sync for Snippet<'a>
impl<'a> Unpin for Snippet<'a>
impl<'a> UnwindSafe for Snippet<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more