pub struct LintError {
pub code: &'static str,
pub message: String,
}Expand description
One lint failure.
Fields§
§code: &'static strStable lint code ("L001".."L014").
message: StringHuman-readable message, multi-line, ready to embed verbatim into
a panic!("…") call. The \n is preserved.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LintError
impl RefUnwindSafe for LintError
impl Send for LintError
impl Sync for LintError
impl Unpin for LintError
impl UnsafeUnpin for LintError
impl UnwindSafe for LintError
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