pub struct Location {
pub line: usize,
pub column: usize,
pub offset: usize,
}Expand description
Source location of a detected anti-pattern.
All three coordinates are provided so callers can serve both LSP (line/column) and byte-level (offset) consumers without re-computing positions.
Fields§
§line: usizeZero-based line number within the scanned source fragment.
column: usizeZero-based column (byte offset from the start of the line).
offset: usizeAbsolute byte offset from the start of the scanned source fragment.
Trait Implementations§
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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