pub(crate) struct DiagnosticAttribute {
pub(crate) ident: Ident,
pub(crate) message: Option<DiagnosticMessage>,
}
Expand description
E.g. primary, "Expected {} arguments, got {}", diag.expected, diag.got
Fields§
§ident: Ident
§message: Option<DiagnosticMessage>
Trait Implementations§
Source§impl Parse for DiagnosticAttribute
impl Parse for DiagnosticAttribute
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for DiagnosticAttribute
impl RefUnwindSafe for DiagnosticAttribute
impl !Send for DiagnosticAttribute
impl !Sync for DiagnosticAttribute
impl Unpin for DiagnosticAttribute
impl UnwindSafe for DiagnosticAttribute
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