Struct proc_macro::bridge::Diagnostic
source · 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>
Auto Trait Implementations§
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