pub struct SourceSelector { /* private fields */ }Expand description
Source file selection configuration
Implementations§
Source§impl SourceSelector
impl SourceSelector
Sourcepub fn add_directory<P: AsRef<Path>>(self, dir: P) -> Self
pub fn add_directory<P: AsRef<Path>>(self, dir: P) -> Self
Add a directory to search for .cu files (recursive)
Sourcepub fn exclude(self, patterns: &[&str]) -> Self
pub fn exclude(self, patterns: &[&str]) -> Self
Exclude files matching patterns
Patterns can be:
- “*_test.cu” - files ending with _test.cu
- “deprecated/*” - files in deprecated directory
- “test_*.cu” - files starting with test_
Sourcepub fn watch_paths(&self) -> &[PathBuf]
pub fn watch_paths(&self) -> &[PathBuf]
Get watch paths
Trait Implementations§
Source§impl Clone for SourceSelector
impl Clone for SourceSelector
Source§fn clone(&self) -> SourceSelector
fn clone(&self) -> SourceSelector
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 SourceSelector
impl Debug for SourceSelector
Auto Trait Implementations§
impl Freeze for SourceSelector
impl RefUnwindSafe for SourceSelector
impl Send for SourceSelector
impl Sync for SourceSelector
impl Unpin for SourceSelector
impl UnsafeUnpin for SourceSelector
impl UnwindSafe for SourceSelector
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more