pub struct ParseWarning<'a> {
pub line: usize,
pub kind: ParseWarningKind<'a>,
}Expand description
A recoverable parse issue with its one-based line number.
Fields§
§line: usizeOne-based line number where the warning was found.
kind: ParseWarningKind<'a>Warning category and borrowed source data, when relevant.
Trait Implementations§
Source§impl<'a> Clone for ParseWarning<'a>
impl<'a> Clone for ParseWarning<'a>
Source§fn clone(&self) -> ParseWarning<'a>
fn clone(&self) -> ParseWarning<'a>
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<'a> Debug for ParseWarning<'a>
impl<'a> Debug for ParseWarning<'a>
Source§impl<'a> PartialEq for ParseWarning<'a>
impl<'a> PartialEq for ParseWarning<'a>
impl<'a> Eq for ParseWarning<'a>
impl<'a> StructuralPartialEq for ParseWarning<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParseWarning<'a>
impl<'a> RefUnwindSafe for ParseWarning<'a>
impl<'a> Send for ParseWarning<'a>
impl<'a> Sync for ParseWarning<'a>
impl<'a> Unpin for ParseWarning<'a>
impl<'a> UnsafeUnpin for ParseWarning<'a>
impl<'a> UnwindSafe for ParseWarning<'a>
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