pub struct DuplicateOptionsBuilder(/* private fields */);Expand description
Fluent builder for DuplicateOptions.
Implementations§
Source§impl DuplicateOptionsBuilder
impl DuplicateOptionsBuilder
pub fn max_depth(self, d: u32) -> Self
pub fn mode(self, m: DuplicateMode) -> Self
pub fn algorithm(self, a: HashAlgorithm) -> Self
pub fn buffer_size(self, b: usize) -> Self
pub fn min_size(self, s: u64) -> Self
pub fn max_size(self, s: u64) -> Self
pub fn skip_binary(self, v: bool) -> Self
pub fn include_patterns(self, p: Vec<String>) -> Self
pub fn exclude_dirs(self, d: Vec<String>) -> Self
pub fn max_results(self, n: usize) -> Self
pub fn build(self) -> DuplicateOptions
Auto Trait Implementations§
impl Freeze for DuplicateOptionsBuilder
impl RefUnwindSafe for DuplicateOptionsBuilder
impl Send for DuplicateOptionsBuilder
impl Sync for DuplicateOptionsBuilder
impl Unpin for DuplicateOptionsBuilder
impl UnsafeUnpin for DuplicateOptionsBuilder
impl UnwindSafe for DuplicateOptionsBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more