pub struct Diagnostic<'a> {
pub message: String,
pub range: Option<Range<usize>>,
pub context: Vec<Context<'a>>,
pub patches: Vec<Patch<'a>>,
pub source: Source<'a>,
}Fields§
§message: String§range: Option<Range<usize>>§context: Vec<Context<'a>>§patches: Vec<Patch<'a>>§source: Source<'a>Trait Implementations§
Source§impl<'a> Debug for Diagnostic<'a>
impl<'a> Debug for Diagnostic<'a>
Auto Trait Implementations§
impl<'a> Freeze for Diagnostic<'a>
impl<'a> RefUnwindSafe for Diagnostic<'a>
impl<'a> Send for Diagnostic<'a>
impl<'a> Sync for Diagnostic<'a>
impl<'a> Unpin for Diagnostic<'a>
impl<'a> UnsafeUnpin for Diagnostic<'a>
impl<'a> UnwindSafe for Diagnostic<'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