pub struct GlobExtConfigBuilder<S: State = Empty> { /* private fields */ }
syntax-glob
or syntax-ev
or syntax-regex
) and crate feature syntax-glob
only.Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> GlobExtConfigBuilder<S>
impl<S: State> GlobExtConfigBuilder<S>
Sourcepub fn build(self) -> GlobExtConfigwhere
S: IsComplete,
pub fn build(self) -> GlobExtConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn two_separator_as_star(
self,
sep: PathSeparator,
star: GlobStar,
) -> GlobExtConfigBuilder<SetTwoSeparatorAsStar<S>>where
S::TwoSeparatorAsStar: IsUnset,
pub fn two_separator_as_star(
self,
sep: PathSeparator,
star: GlobStar,
) -> GlobExtConfigBuilder<SetTwoSeparatorAsStar<S>>where
S::TwoSeparatorAsStar: IsUnset,
Optional (Some / Option setters).
sep
: You likely want to usePathSeparator::Any
.star
:GlobStar::ToChild
: Replace\\
with*\**
for Windows and vice versa for Unix.
Used by voidtools’ Everything.
Sourcepub fn maybe_two_separator_as_star(
self,
value: Option<(PathSeparator, GlobStar)>,
) -> GlobExtConfigBuilder<SetTwoSeparatorAsStar<S>>where
S::TwoSeparatorAsStar: IsUnset,
pub fn maybe_two_separator_as_star(
self,
value: Option<(PathSeparator, GlobStar)>,
) -> GlobExtConfigBuilder<SetTwoSeparatorAsStar<S>>where
S::TwoSeparatorAsStar: IsUnset,
Optional (Some / Option setters).
sep
: You likely want to usePathSeparator::Any
.star
:GlobStar::ToChild
: Replace\\
with*\**
for Windows and vice versa for Unix.
Used by voidtools’ Everything.
Sourcepub fn separator_as_star(
self,
sep: PathSeparator,
star: GlobStar,
) -> GlobExtConfigBuilder<SetSeparatorAsStar<S>>where
S::SeparatorAsStar: IsUnset,
pub fn separator_as_star(
self,
sep: PathSeparator,
star: GlobStar,
) -> GlobExtConfigBuilder<SetSeparatorAsStar<S>>where
S::SeparatorAsStar: IsUnset,
Optional (Some / Option setters).
sep
: You likely want to usePathSeparator::os_complement()
.star
:-
GlobStar::ToChild
: Replace/
with*\**
for Windows and vice versa for Unix.e.g.
xx/hj
can matchxxzl\sj\7yhj
(学习资料\时间\7月合集
with pinyin match) for Windows. -
GlobStar::ToChildStart
: Replace/
with**\
for Windows and vice versa for Unix.For example:
foo/alice
can, butfoo/lice
can’t matchfoo\bar\alice
for Windows.xx/7y
can, butxx/hj
can’t matchxxzl\sj\7yhj
(学习资料\时间\合集7月
with pinyin match) for Windows.
-
Used by IbEverythingExt.
Sourcepub fn maybe_separator_as_star(
self,
value: Option<(PathSeparator, GlobStar)>,
) -> GlobExtConfigBuilder<SetSeparatorAsStar<S>>where
S::SeparatorAsStar: IsUnset,
pub fn maybe_separator_as_star(
self,
value: Option<(PathSeparator, GlobStar)>,
) -> GlobExtConfigBuilder<SetSeparatorAsStar<S>>where
S::SeparatorAsStar: IsUnset,
Optional (Some / Option setters).
sep
: You likely want to usePathSeparator::os_complement()
.star
:-
GlobStar::ToChild
: Replace/
with*\**
for Windows and vice versa for Unix.e.g.
xx/hj
can matchxxzl\sj\7yhj
(学习资料\时间\7月合集
with pinyin match) for Windows. -
GlobStar::ToChildStart
: Replace/
with**\
for Windows and vice versa for Unix.For example:
foo/alice
can, butfoo/lice
can’t matchfoo\bar\alice
for Windows.xx/7y
can, butxx/hj
can’t matchxxzl\sj\7yhj
(学习资料\时间\合集7月
with pinyin match) for Windows.
-
Used by IbEverythingExt.
Auto Trait Implementations§
impl<S> Freeze for GlobExtConfigBuilder<S>
impl<S> RefUnwindSafe for GlobExtConfigBuilder<S>
impl<S> Send for GlobExtConfigBuilder<S>
impl<S> Sync for GlobExtConfigBuilder<S>
impl<S> Unpin for GlobExtConfigBuilder<S>
impl<S> UnwindSafe for GlobExtConfigBuilder<S>
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