Struct debris_error::snippet::AnnotationOwned
source · pub struct AnnotationOwned<'a> {
pub id: Option<Cow<'a, str>>,
pub label: Option<Cow<'a, str>>,
pub annotation_type: AnnotationType,
}
Expand description
An owned counterpart to the annotate_snippets::SourceAnnotation
struct
Fields§
§id: Option<Cow<'a, str>>
§label: Option<Cow<'a, str>>
§annotation_type: AnnotationType
Implementations§
source§impl AnnotationOwned<'_>
impl AnnotationOwned<'_>
pub fn as_annotation(&self) -> Annotation<'_>
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AnnotationOwned<'a>
impl<'a> Send for AnnotationOwned<'a>
impl<'a> Sync for AnnotationOwned<'a>
impl<'a> Unpin for AnnotationOwned<'a>
impl<'a> UnwindSafe for AnnotationOwned<'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