pub struct Yadf<P: AsRef<Path>> { /* private fields */ }
Expand description
Search configuration.
§Example
let counter = yadf::Yadf::builder()
.paths(paths) // required
.minimum_file_size(64) // optional
.maximum_file_size(1024 * 8) // optional
.regex(None) // optional
.glob(None) // optional
.build()
.scan::<seahash::SeaHasher>();
see the docs for the YadfBuilder
Implementations§
source§impl<P: AsRef<Path>> Yadf<P>
impl<P: AsRef<Path>> Yadf<P>
sourcepub fn builder() -> YadfBuilder<P, ((), (), (), (), (), (), ())>
pub fn builder() -> YadfBuilder<P, ((), (), (), (), (), (), ())>
Create a builder for building Yadf
.
On the builder, call .paths(...)
, .minimum_file_size(...)
(optional), .maximum_file_size(...)
(optional), .max_depth(...)
(optional), .regex(...)
(optional), .glob(...)
(optional), .hard_links(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Yadf
.
Trait Implementations§
Auto Trait Implementations§
impl<P> RefUnwindSafe for Yadf<P>where
P: RefUnwindSafe,
impl<P> !Send for Yadf<P>
impl<P> !Sync for Yadf<P>
impl<P> Unpin for Yadf<P>
impl<P> UnwindSafe for Yadf<P>where
P: RefUnwindSafe,
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