Struct xvc_walker::Pattern
source · pub struct Pattern<T>{
pub pattern: T,
/* private fields */
}Expand description
Pattern is generic and could be an instance of String, Glob, Regex or any other object.
The type is evolved by compiling.
A pattern can start its life as Pattern<String> and can be compiled into Pattern<Glob> or
Pattern<Regex>.
Fields§
§pattern: TThe pattern type
Implementations§
Trait Implementations§
impl<T> Eq for Pattern<T>
impl<T> StructuralPartialEq for Pattern<T>
Auto Trait Implementations§
impl<T> Freeze for Pattern<T>where
T: Freeze,
impl<T> RefUnwindSafe for Pattern<T>where
T: RefUnwindSafe,
impl<T> Send for Pattern<T>where
T: Send,
impl<T> Sync for Pattern<T>where
T: Sync,
impl<T> Unpin for Pattern<T>where
T: Unpin,
impl<T> UnwindSafe for Pattern<T>where
T: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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