pub struct IncludePattern {
pub glob: GlobSet,
pub defs: Vec<String>,
pub spans: Vec<Pos>,
}
Expand description
This specifies which DefId
should be checked. It can be specified via multiple patterns
of the form -Finclude=<pattern>
and the DefId
is checked if it matches any of the patterns.
Patterns are checked relative to the current working directory.
Fields§
§glob: GlobSet
files matching the glob pattern, e.g. glob:src/ascii/*.rs
to check all files in the ascii
module
defs: Vec<String>
defs (fn
, enum
, …) matching the given function name as a substring, e.g. def:watermelon
spans: Vec<Pos>
fn whose implementation overlaps the file, line, e.g. span:tests/tests/pos/detached/detach00.rs:13:3
Implementations§
Trait Implementations§
Source§impl Clone for IncludePattern
impl Clone for IncludePattern
Source§fn clone(&self) -> IncludePattern
fn clone(&self) -> IncludePattern
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 IncludePattern
impl Debug for IncludePattern
Auto Trait Implementations§
impl Freeze for IncludePattern
impl RefUnwindSafe for IncludePattern
impl Send for IncludePattern
impl Sync for IncludePattern
impl Unpin for IncludePattern
impl UnwindSafe for IncludePattern
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