Struct Diagnostic
pub struct Diagnostic<Span> { pub level: Level, pub message: String, pub spans: Vec<Span>, pub children: Vec<Diagnostic<Span>> }
Fields
level: Levelmessage: Stringspans: Vec<Span>children: Vec<Diagnostic<Span>>
Trait Implementations
impl<'a, S, Span: for<'s> Decode<'a, 's, S>> Decode<'a, '_, S> for Diagnostic<Span>
fn decode(r: &mut &'a [u8], s: &mut S) -> Self
impl<S, Span: Encode<S>> Encode<S> for Diagnostic<Span>
fn encode(self, w: &mut Buffer, s: &mut S)
impl<Span: Clone> Clone for Diagnostic<Span>
fn clone(&self) -> Diagnostic<Span>
impl<Span: Debug> Debug for Diagnostic<Span>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<Span: Mark> Mark for Diagnostic<Span>
type Unmarked = Diagnostic<<Span as Mark>::Unmarked>;fn mark(unmarked: Self::Unmarked) -> Selffn unmark(self) -> Self::Unmarked
Auto Trait Implementations
impl<Span> Freeze for Diagnostic<Span>
where
Vec<Span>: Freeze,
Vec<Diagnostic<Span>>: Freeze,
impl<Span> RefUnwindSafe for Diagnostic<Span>
where
Vec<Span>: RefUnwindSafe,
Vec<Diagnostic<Span>>: RefUnwindSafe,
impl<Span> Send for Diagnostic<Span>
where
Vec<Span>: Send,
Vec<Diagnostic<Span>>: Send,
impl<Span> Sync for Diagnostic<Span>
where
Vec<Span>: Sync,
Vec<Diagnostic<Span>>: Sync,
impl<Span> Unpin for Diagnostic<Span>
where
Vec<Span>: Unpin,
Vec<Diagnostic<Span>>: Unpin,
impl<Span> UnsafeUnpin for Diagnostic<Span>
where
Vec<Span>: UnsafeUnpin,
Vec<Diagnostic<Span>>: UnsafeUnpin,
impl<Span> UnwindSafe for Diagnostic<Span>
where
Vec<Span>: UnwindSafe,
Vec<Diagnostic<Span>>: UnwindSafe,
Blanket Implementations
impl<T> Any for Diagnostic<Span>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Diagnostic<Span>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Diagnostic<Span>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Diagnostic<Span>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Diagnostic<Span>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Diagnostic<Span>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Diagnostic<Span>
impl<T> ToOwned for Diagnostic<Span>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Diagnostic<Span>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Diagnostic<Span>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Diagnostic<Span>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>