pub struct CodeScope {
pub krate: String,
pub modules: Vec<String>,
}Expand description
Where a PatternCandidate applies: a crate, and (if the evidence
concentrates on specific items) the qualified item paths within it.
Deliberately not crate::finding::Location — that type is a single
file/line/item anchor for a line-precise finding, while a pattern
candidate is crate- or module-wide by construction (todo.md §16.1: many
local symptoms are aggregated into one design decision, so there is no
single line to anchor to).
Fields§
§krate: StringThe crate this candidate concerns (see CrateInfo::name).
modules: Vec<String>Qualified item paths the evidence concentrates on, deduplicated and sorted. Empty when the candidate concerns the crate as a whole rather than specific items.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeScope
impl RefUnwindSafe for CodeScope
impl Send for CodeScope
impl Sync for CodeScope
impl Unpin for CodeScope
impl UnsafeUnpin for CodeScope
impl UnwindSafe for CodeScope
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