Struct debris_error::SnippetOwned
source · pub struct SnippetOwned<'a> {
pub title: Cow<'a, str>,
pub id: Option<Cow<'a, str>>,
pub annotation_type: AnnotationType,
pub slices: Vec<SliceOwned<'a>>,
pub footer: Vec<AnnotationOwned<'a>>,
}
Expand description
An owned counterpart to the annotate_snippets::Snippet
struct
Fields§
§title: Cow<'a, str>
§id: Option<Cow<'a, str>>
§annotation_type: AnnotationType
§slices: Vec<SliceOwned<'a>>
Implementations§
source§impl SnippetOwned<'_>
impl SnippetOwned<'_>
pub fn as_snippet(&self, input_files: &InputFiles) -> Snippet<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SnippetOwned<'a>
impl<'a> Send for SnippetOwned<'a>
impl<'a> Sync for SnippetOwned<'a>
impl<'a> Unpin for SnippetOwned<'a>
impl<'a> UnwindSafe for SnippetOwned<'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