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 matches_binary(&self, query: &BinaryQuery<'_>) -> Option<bool>
pub fn matches_binary(&self, query: &BinaryQuery<'_>) -> Option<bool>
Returns a value indicating if the given binary is accepted by this filter expression.
The value is:
Some(true)
if this binary is definitely accepted by this filter expression.Some(false)
if this binary is definitely not accepted.None
if this binary might or might not be accepted.
sourcepub fn matches_test(&self, query: &TestQuery<'_>) -> bool
pub fn matches_test(&self, query: &TestQuery<'_>) -> bool
Returns true if the given test is accepted by this filter expression.
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.