pub enum FilterPattern {
Exact(String),
Prefix(String),
Suffix(String),
Contains(String),
Glob(Vec<GlobSegment>),
}Expand description
A single filter pattern that can match test names.
Variants§
Exact(String)
Exact string match
Prefix(String)
Prefix match (pattern ends with *)
Suffix(String)
Suffix match (pattern starts with *)
Contains(String)
Contains match (pattern starts and ends with *)
Glob(Vec<GlobSegment>)
Simple glob with * wildcards
Implementations§
Trait Implementations§
Source§impl Clone for FilterPattern
impl Clone for FilterPattern
Source§fn clone(&self) -> FilterPattern
fn clone(&self) -> FilterPattern
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 moreAuto Trait Implementations§
impl Freeze for FilterPattern
impl RefUnwindSafe for FilterPattern
impl Send for FilterPattern
impl Sync for FilterPattern
impl Unpin for FilterPattern
impl UnsafeUnpin for FilterPattern
impl UnwindSafe for FilterPattern
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