pub struct Giterator { /* private fields */ }Expand description
A builder to define how to search for Git directories.
Implementations§
Source§impl Giterator
impl Giterator
Sourcepub fn root<P: AsRef<Path>>(self, root: P) -> Self
pub fn root<P: AsRef<Path>>(self, root: P) -> Self
Sets the apex root directory to begin searching. The directory itself
will not be considered for inclusion in the final results; only
directories within root.
Sourcepub fn follow_links(self, follow: bool) -> Self
pub fn follow_links(self, follow: bool) -> Self
Sets wether or not to follow symbolic links in the directory tree.
Sourcepub fn max_depth(self, depth: usize) -> Self
pub fn max_depth(self, depth: usize) -> Self
Sets the maximum number of directories from root to search. Directories
more than depth directories deeper than root will not be found.
Sourcepub fn regex(self, regex: Regex) -> Self
pub fn regex(self, regex: Regex) -> Self
Sets the regular expression that must match directory paths.
Sourcepub fn match_full_path(self, match_full_path: bool) -> Self
pub fn match_full_path(self, match_full_path: bool) -> Self
Sets wether or not to match regex against the full
canonicalized directory path.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Giterator
impl !RefUnwindSafe for Giterator
impl Send for Giterator
impl Sync for Giterator
impl Unpin for Giterator
impl UnwindSafe for Giterator
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