pub struct Violation {
pub code: Rule,
pub message: String,
pub text_range: TextRange,
pub help: Option<String>,
pub fix: Option<Fix>,
}
Fields§
§code: Rule
§message: String
§text_range: TextRange
§help: Option<String>
§fix: Option<Fix>
Implementations§
Trait Implementations§
impl Eq for Violation
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnwindSafe for Violation
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