pub struct FileWalker<'a, F>where
F: WalkerFs,{ /* private fields */ }Expand description
Implementations§
Source§impl<'a, F> FileWalker<'a, F>where
F: WalkerFs,
impl<'a, F> FileWalker<'a, F>where
F: WalkerFs,
Sourcepub fn new(fs: &'a F, root: impl AsRef<Path>) -> FileWalker<'a, F>
pub fn new(fs: &'a F, root: impl AsRef<Path>) -> FileWalker<'a, F>
Create a new file walker starting at the given root.
Sourcepub fn with_pattern(self, pattern: GlobPath) -> FileWalker<'a, F>
pub fn with_pattern(self, pattern: GlobPath) -> FileWalker<'a, F>
Set a glob pattern to filter results.
Sourcepub fn with_options(self, options: WalkOptions) -> FileWalker<'a, F>
pub fn with_options(self, options: WalkOptions) -> FileWalker<'a, F>
Set walk options.
Sourcepub fn with_ignore(self, filter: IgnoreFilter) -> FileWalker<'a, F>
pub fn with_ignore(self, filter: IgnoreFilter) -> FileWalker<'a, F>
Set the ignore filter explicitly.
Auto Trait Implementations§
impl<'a, F> !RefUnwindSafe for FileWalker<'a, F>
impl<'a, F> !UnwindSafe for FileWalker<'a, F>
impl<'a, F> Freeze for FileWalker<'a, F>
impl<'a, F> Send for FileWalker<'a, F>
impl<'a, F> Sync for FileWalker<'a, F>
impl<'a, F> Unpin for FileWalker<'a, F>
impl<'a, F> UnsafeUnpin for FileWalker<'a, F>where
&'a F: UnsafeUnpin,
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.