pub struct IssueLocation {
pub line: usize,
pub column: usize,
pub offset: usize,
pub length: usize,
pub span: String,
}Available on crate feature
analysis only.Expand description
Location information for a lint issue.
Fields§
§line: usizeLine number (1-based)
column: usizeColumn number (1-based)
offset: usizeByte offset in source
length: usizeLength of the problematic span
span: StringThe problematic text span
Trait Implementations§
Source§impl Clone for IssueLocation
impl Clone for IssueLocation
Source§fn clone(&self) -> IssueLocation
fn clone(&self) -> IssueLocation
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 Debug for IssueLocation
impl Debug for IssueLocation
Source§impl PartialEq for IssueLocation
impl PartialEq for IssueLocation
impl Eq for IssueLocation
impl StructuralPartialEq for IssueLocation
Auto Trait Implementations§
impl Freeze for IssueLocation
impl RefUnwindSafe for IssueLocation
impl Send for IssueLocation
impl Sync for IssueLocation
impl Unpin for IssueLocation
impl UnwindSafe for IssueLocation
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