Struct yadf::YadfBuilder[][src]

#[must_use]pub struct YadfBuilder<TypedBuilderFields, P: AsRef<Path>> { /* fields omitted */ }

Builder for Yadf instances.

See Yadf::builder() for more info.

Implementations

impl<P: AsRef<Path>, __minimum_file_size, __maximum_file_size, __max_depth, __regex, __glob, __hard_links> YadfBuilder<((), __minimum_file_size, __maximum_file_size, __max_depth, __regex, __glob, __hard_links), P>[src]

pub fn paths(
    self,
    paths: impl Into<Rc<[P]>>
) -> YadfBuilder<((Rc<[P]>,), __minimum_file_size, __maximum_file_size, __max_depth, __regex, __glob, __hard_links), P>
[src]

Paths that will be checked for duplicate files

impl<P: AsRef<Path>, __paths, __maximum_file_size, __max_depth, __regex, __glob, __hard_links> YadfBuilder<(__paths, (), __maximum_file_size, __max_depth, __regex, __glob, __hard_links), P>[src]

pub fn minimum_file_size(
    self,
    minimum_file_size: impl Into<Option<u64>>
) -> YadfBuilder<(__paths, (Option<u64>,), __maximum_file_size, __max_depth, __regex, __glob, __hard_links), P>
[src]

Minimum file size

impl<P: AsRef<Path>, __paths, __minimum_file_size, __max_depth, __regex, __glob, __hard_links> YadfBuilder<(__paths, __minimum_file_size, (), __max_depth, __regex, __glob, __hard_links), P>[src]

pub fn maximum_file_size(
    self,
    maximum_file_size: impl Into<Option<u64>>
) -> YadfBuilder<(__paths, __minimum_file_size, (Option<u64>,), __max_depth, __regex, __glob, __hard_links), P>
[src]

Maximum file size

impl<P: AsRef<Path>, __paths, __minimum_file_size, __maximum_file_size, __regex, __glob, __hard_links> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, (), __regex, __glob, __hard_links), P>[src]

pub fn max_depth(
    self,
    max_depth: impl Into<Option<usize>>
) -> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, (Option<usize>,), __regex, __glob, __hard_links), P>
[src]

Maximum recursion depth

impl<P: AsRef<Path>, __paths, __minimum_file_size, __maximum_file_size, __max_depth, __glob, __hard_links> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, __max_depth, (), __glob, __hard_links), P>[src]

pub fn regex(
    self,
    regex: impl Into<Option<Regex>>
) -> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, __max_depth, (Option<Regex>,), __glob, __hard_links), P>
[src]

File name must match this regex

impl<P: AsRef<Path>, __paths, __minimum_file_size, __maximum_file_size, __max_depth, __regex, __hard_links> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, __max_depth, __regex, (), __hard_links), P>[src]

pub fn glob(
    self,
    glob: impl Into<Option<Glob>>
) -> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, __max_depth, __regex, (Option<Glob>,), __hard_links), P>
[src]

File name must match this glob

impl<P: AsRef<Path>, __paths, __minimum_file_size, __maximum_file_size, __max_depth, __regex, __glob> YadfBuilder<(__paths, __minimum_file_size, __maximum_file_size, __max_depth, __regex, __glob, ()), P>[src]

Treat hard links as duplicates

impl<P: AsRef<Path>, __minimum_file_size: YadfBuilder_Optional<Option<u64>>, __maximum_file_size: YadfBuilder_Optional<Option<u64>>, __max_depth: YadfBuilder_Optional<Option<usize>>, __regex: YadfBuilder_Optional<Option<Regex>>, __glob: YadfBuilder_Optional<Option<Glob>>, __hard_links: YadfBuilder_Optional<bool>> YadfBuilder<((Rc<[P]>,), __minimum_file_size, __maximum_file_size, __max_depth, __regex, __glob, __hard_links), P>[src]

pub fn build(self) -> Yadf<P>[src]

Finalise the builder and create its Yadf instance

Trait Implementations

impl<TypedBuilderFields, P: AsRef<Path>> Clone for YadfBuilder<TypedBuilderFields, P> where
    TypedBuilderFields: Clone
[src]

Auto Trait Implementations

impl<TypedBuilderFields, P> RefUnwindSafe for YadfBuilder<TypedBuilderFields, P> where
    P: RefUnwindSafe,
    TypedBuilderFields: RefUnwindSafe

impl<TypedBuilderFields, P> Send for YadfBuilder<TypedBuilderFields, P> where
    P: Send,
    TypedBuilderFields: Send

impl<TypedBuilderFields, P> Sync for YadfBuilder<TypedBuilderFields, P> where
    P: Sync,
    TypedBuilderFields: Sync

impl<TypedBuilderFields, P> Unpin for YadfBuilder<TypedBuilderFields, P> where
    P: Unpin,
    TypedBuilderFields: Unpin

impl<TypedBuilderFields, P> UnwindSafe for YadfBuilder<TypedBuilderFields, P> where
    P: UnwindSafe,
    TypedBuilderFields: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,