pub struct Discovery { /* private fields */ }Expand description
Which files a run considers.
Implementations§
Source§impl Discovery
impl Discovery
Sourcepub fn new(
root: impl AsRef<Path>,
include: &[String],
exclude: &[String],
) -> Result<Self, DiscoveryError>
pub fn new( root: impl AsRef<Path>, include: &[String], exclude: &[String], ) -> Result<Self, DiscoveryError>
Build a discovery over a project root.
§Errors
Returns DiscoveryError::InvalidGlob for a malformed pattern, with the field it
came from — an error naming only the pattern leaves the reader searching for it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Discovery
impl RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
impl UnwindSafe for Discovery
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