pub enum PathSeparator {
Os,
Unix,
Windows,
Any,
}
Available on (crate features
syntax-glob
or syntax-ev
or syntax-regex
) and crate feature syntax-glob
only.Expand description
Defaults to PathSeparator::Os
, i.e. /
on Unix and \
on Windows.
Variants§
Implementations§
Source§impl PathSeparator
impl PathSeparator
pub fn is_unix_or_any(self) -> bool
pub fn is_windows_or_any(self) -> bool
pub fn any_byte_except(&self) -> Hir
pub fn any_char_except(&self) -> Hir
Sourcepub fn look_matcher(&self) -> LookMatcher
pub fn look_matcher(&self) -> LookMatcher
Does not support PathSeparator::Any
yet.
Sourcepub fn look_matcher_config(&self) -> Config
pub fn look_matcher_config(&self) -> Config
Does not support PathSeparator::Any
yet.
Sourcepub fn os_complement() -> PathSeparator
pub fn os_complement() -> PathSeparator
The complement path separator of the current OS, i.e. /
on Windows and \
on Unix.
Trait Implementations§
Source§impl Clone for PathSeparator
impl Clone for PathSeparator
Source§fn clone(&self) -> PathSeparator
fn clone(&self) -> PathSeparator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PathSeparator
impl Default for PathSeparator
Source§fn default() -> PathSeparator
fn default() -> PathSeparator
Returns the “default value” for a type. Read more
impl Copy for PathSeparator
Auto Trait Implementations§
impl Freeze for PathSeparator
impl RefUnwindSafe for PathSeparator
impl Send for PathSeparator
impl Sync for PathSeparator
impl Unpin for PathSeparator
impl UnwindSafe for PathSeparator
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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