pub struct Diagnostic<Span> {
pub level: Level,
pub message: String,
pub spans: Vec<Span>,
pub children: Vec<Diagnostic<Span>>,
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Fields§
§level: Level
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)message: String
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)spans: Vec<Span>
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)children: Vec<Diagnostic<Span>>
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Trait Implementations§
Source§impl<Span: Clone> Clone for Diagnostic<Span>
impl<Span: Clone> Clone for Diagnostic<Span>
Source§fn clone(&self) -> Diagnostic<Span>
fn clone(&self) -> Diagnostic<Span>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Span: Debug> Debug for Diagnostic<Span>
impl<Span: Debug> Debug for Diagnostic<Span>
Source§impl<'a, S, Span: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S> for Diagnostic<Span>
impl<'a, S, Span: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S> for Diagnostic<Span>
Source§impl<S, Span: Encode<S>> Encode<S> for Diagnostic<Span>
impl<S, Span: Encode<S>> Encode<S> for Diagnostic<Span>
Source§impl<Span: Mark> Mark for Diagnostic<Span>
impl<Span: Mark> Mark for Diagnostic<Span>
Source§impl<Span: Unmark> Unmark for Diagnostic<Span>
impl<Span: Unmark> Unmark for Diagnostic<Span>
Auto Trait Implementations§
impl<Span> Freeze for Diagnostic<Span>
impl<Span> RefUnwindSafe for Diagnostic<Span>where
Span: RefUnwindSafe,
impl<Span> Send for Diagnostic<Span>where
Span: Send,
impl<Span> Sync for Diagnostic<Span>where
Span: Sync,
impl<Span> Unpin for Diagnostic<Span>where
Span: Unpin,
impl<Span> UnwindSafe for Diagnostic<Span>where
Span: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more