pub struct Problem { /* private fields */ }Expand description
One problem in a file: what is wrong, where, and how much it matters.
Implementations§
Source§impl Problem
impl Problem
Sourcepub fn offset(&self) -> usize
pub fn offset(&self) -> usize
The byte offset in the text where the problem is. Always on a character boundary.
Sourcepub fn severity(&self) -> Severity
pub fn severity(&self) -> Severity
The problem’s severity under the config it was checked with. Never Off.
A second offset the problem refers to: the first occurrence of a duplicate key, or where an unterminated string or comment starts.
Trait Implementations§
impl Eq for Problem
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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