Struct debris_error::snippet::SourceAnnotationOwned
source · pub struct SourceAnnotationOwned {
pub annotation_type: AnnotationType,
pub range: Span,
pub label: String,
}
Expand description
An owned counterpart to the annotate_snippets::SourceAnnotation
struct
Fields§
§annotation_type: AnnotationType
§range: Span
§label: String
Implementations§
source§impl SourceAnnotationOwned
impl SourceAnnotationOwned
pub fn as_source_annotation( &self, input_files: &InputFiles ) -> SourceAnnotation<'_>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for SourceAnnotationOwned
impl Send for SourceAnnotationOwned
impl Sync for SourceAnnotationOwned
impl Unpin for SourceAnnotationOwned
impl UnwindSafe for SourceAnnotationOwned
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