pub struct ScopeIssue {
pub kind: IssueKind,
pub variable_name: String,
pub line: usize,
pub range: (usize, usize),
pub description: String,
}Expand description
Scope analysis issue types and analyzer. A single scope-analysis finding with location and human-readable description.
Fields§
§kind: IssueKindThe category of scope problem detected.
variable_name: StringThe bare variable name (without sigil) involved in the issue.
line: usizeZero-based line number of the first token of the offending construct.
range: (usize, usize)Byte offset range (start, end) of the offending construct.
description: StringHuman-readable explanation of the issue.
Trait Implementations§
Source§impl Clone for ScopeIssue
impl Clone for ScopeIssue
Source§fn clone(&self) -> ScopeIssue
fn clone(&self) -> ScopeIssue
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 moreAuto Trait Implementations§
impl Freeze for ScopeIssue
impl RefUnwindSafe for ScopeIssue
impl Send for ScopeIssue
impl Sync for ScopeIssue
impl Unpin for ScopeIssue
impl UnsafeUnpin for ScopeIssue
impl UnwindSafe for ScopeIssue
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