Struct nextest_filtering::FilteringExpr
source · pub struct FilteringExpr {
pub input: String,
pub parsed: ParsedExpr,
pub compiled: CompiledExpr,
}Expand description
Filtering expression.
Used to filter tests to run.
Fields§
§input: StringThe raw expression passed in.
parsed: ParsedExprThe parsed-but-not-compiled expression.
compiled: CompiledExprThe compiled expression.
Implementations§
source§impl FilteringExpr
impl FilteringExpr
sourcepub fn parse(
input: String,
graph: &PackageGraph
) -> Result<Self, FilterExpressionParseErrors>
pub fn parse( input: String, graph: &PackageGraph ) -> Result<Self, 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.Noneif 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§
source§impl Clone for FilteringExpr
impl Clone for FilteringExpr
source§fn clone(&self) -> FilteringExpr
fn clone(&self) -> FilteringExpr
Returns a copy 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 Debug for FilteringExpr
impl Debug for FilteringExpr
source§impl PartialEq<FilteringExpr> for FilteringExpr
impl PartialEq<FilteringExpr> for FilteringExpr
source§fn 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 ==.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§
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<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.