Struct xvc_walker::WalkOptions
source · Expand description
What’s the ignore file name and should we add directories to the result?
Fields
ignore_filename: Option<String>The ignore filename (.gitignore, .xvcignore, .ignore, etc.) or None for not
ignoring anything.
include_dirs: boolShould the results include directories themselves? Note that they are always traversed, but may not be listed if we’re only interested in actual files.
Implementations
sourceimpl WalkOptions
impl WalkOptions
sourcepub fn gitignore() -> Self
pub fn gitignore() -> Self
Instantiate a Git repository walker that uses .gitignore as ignore file name and includes
directories in results.
sourcepub fn xvcignore() -> Self
pub fn xvcignore() -> Self
Instantiate a Xvc repository walker that uses .xvcignore as ignore file name and includes
directories in results.
sourcepub fn without_dirs(self) -> Self
pub fn without_dirs(self) -> Self
Return options with include_dirs turned off.
WalkOptions::xvcignore().without_dirs() specifies a xvcignore walker that only lists
files.
Trait Implementations
sourceimpl Clone for WalkOptions
impl Clone for WalkOptions
sourcefn clone(&self) -> WalkOptions
fn clone(&self) -> WalkOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for WalkOptions
impl Send for WalkOptions
impl Sync for WalkOptions
impl Unpin for WalkOptions
impl UnwindSafe for WalkOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more