pub struct Struct {
pub Exclude: Vec<String>,
pub Omit: Vec<String>,
pub Parallel: Parallel,
pub Pattern: Pattern,
pub Root: String,
pub Separator: Separator,
}
Expand description
Represents the options for binary command execution.
This struct holds various fields related to the command options, including exclude patterns, omit patterns, parallel execution flag, pattern to match, root directory, and separator for file paths.
Fields§
§Exclude: Vec<String>
A vector of strings representing patterns to exclude.
Omit: Vec<String>
A vector of strings representing patterns to omit.
Parallel: Parallel
A flag indicating whether to execute commands in parallel.
Pattern: Pattern
A string pattern to match against the last element of each entry.
Root: String
The root directory to start the walk from.
Separator: Separator
The separator used for file paths.
Implementations§
Source§impl Struct
impl Struct
Sourcepub fn Fn(_: Option) -> Self
pub fn Fn(_: Option) -> Self
Creates a new instance of the Struct.
This function initializes the Struct with the provided options, generating the exclude patterns, omit patterns, parallel flag, pattern, root directory, and separator from the options.
§Arguments
Option
- A reference to an Option struct containing initialization parameters.
§Returns
Returns a new instance of Struct.
Auto Trait Implementations§
impl Freeze for Struct
impl RefUnwindSafe for Struct
impl Send for Struct
impl Sync for Struct
impl Unpin for Struct
impl UnwindSafe for Struct
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
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>
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>
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