pub struct ParseWarning {
pub kind: ParseWarningKind,
pub span: Span,
}
Expand description
A warning.
Fields§
§kind: ParseWarningKind
The kind of warning
span: Span
The span pointing to the source of the warning
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
Returns a duplicate 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 Display for ParseWarning
impl Display for ParseWarning
Source§impl From<ParseWarning> for ParseDiagnostic
impl From<ParseWarning> for ParseDiagnostic
Source§fn from(value: ParseWarning) -> Self
fn from(value: ParseWarning) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl UnwindSafe for ParseWarning
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