Enum nextest_filtering::FilteringExpr
source · [−]pub enum FilteringExpr {
Not(Box<FilteringExpr>),
Union(Box<FilteringExpr>, Box<FilteringExpr>),
Intersection(Box<FilteringExpr>, Box<FilteringExpr>),
Set(FilteringSet),
}
Expand description
Filtering expression
Used to filter tests to run.
Variants
Not(Box<FilteringExpr>)
Accepts every test not in the given expression
Union(Box<FilteringExpr>, Box<FilteringExpr>)
Accepts every test in either given expression
Intersection(Box<FilteringExpr>, Box<FilteringExpr>)
Accepts every test in both given expressions
Set(FilteringSet)
Accepts every test in a set
Implementations
sourceimpl FilteringExpr
impl FilteringExpr
sourcepub fn parse(
input: &str,
graph: &PackageGraph
) -> Result<FilteringExpr, FilterExpressionParseErrors>
pub fn parse(
input: &str,
graph: &PackageGraph
) -> Result<FilteringExpr, FilterExpressionParseErrors>
Parse a filtering expression
sourcepub fn includes(&self, package_id: &PackageId, name: &str) -> bool
pub fn includes(&self, package_id: &PackageId, name: &str) -> bool
Returns true if the given test is accepted by this filter
sourcepub fn needs_deps(raw_expr: &str) -> bool
pub fn needs_deps(raw_expr: &str) -> bool
Returns true if the given expression needs dependencies information to work
Trait Implementations
sourceimpl Clone for FilteringExpr
impl Clone for FilteringExpr
sourcefn clone(&self) -> FilteringExpr
fn clone(&self) -> FilteringExpr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FilteringExpr
impl Debug for FilteringExpr
sourceimpl PartialEq<FilteringExpr> for FilteringExpr
impl PartialEq<FilteringExpr> for FilteringExpr
sourcefn eq(&self, other: &FilteringExpr) -> bool
fn eq(&self, other: &FilteringExpr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FilteringExpr) -> bool
fn ne(&self, other: &FilteringExpr) -> bool
This method tests for !=
.
impl Eq for FilteringExpr
impl StructuralEq for FilteringExpr
impl StructuralPartialEq for FilteringExpr
Auto Trait Implementations
impl RefUnwindSafe for FilteringExpr
impl Send for FilteringExpr
impl Sync for FilteringExpr
impl Unpin for FilteringExpr
impl UnwindSafe for FilteringExpr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more