Enum nextest_filtering::ParsedExpr
source · pub enum ParsedExpr<S = SourceSpan> {
Not(NotOperator, Box<ParsedExpr<S>>),
Union(OrOperator, Box<ParsedExpr<S>>, Box<ParsedExpr<S>>),
Intersection(AndOperator, Box<ParsedExpr<S>>, Box<ParsedExpr<S>>),
Difference(DifferenceOperator, Box<ParsedExpr<S>>, Box<ParsedExpr<S>>),
Parens(Box<ParsedExpr<S>>),
Set(SetDef<S>),
}
Expand description
A filter expression that hasn’t been compiled against a package graph.
XXX: explain why S
is required (for equality checking w/tests), or replace it with its own
structure.
Variants§
Not(NotOperator, Box<ParsedExpr<S>>)
Union(OrOperator, Box<ParsedExpr<S>>, Box<ParsedExpr<S>>)
Intersection(AndOperator, Box<ParsedExpr<S>>, Box<ParsedExpr<S>>)
Difference(DifferenceOperator, Box<ParsedExpr<S>>, Box<ParsedExpr<S>>)
Parens(Box<ParsedExpr<S>>)
Set(SetDef<S>)
Implementations§
source§impl ParsedExpr
impl ParsedExpr
Trait Implementations§
source§impl<S: Clone> Clone for ParsedExpr<S>
impl<S: Clone> Clone for ParsedExpr<S>
source§fn clone(&self) -> ParsedExpr<S>
fn clone(&self) -> ParsedExpr<S>
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<S: Debug> Debug for ParsedExpr<S>
impl<S: Debug> Debug for ParsedExpr<S>
source§impl<S> Display for ParsedExpr<S>
impl<S> Display for ParsedExpr<S>
source§impl<S: PartialEq> PartialEq for ParsedExpr<S>
impl<S: PartialEq> PartialEq for ParsedExpr<S>
source§fn eq(&self, other: &ParsedExpr<S>) -> bool
fn eq(&self, other: &ParsedExpr<S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<S: Eq> Eq for ParsedExpr<S>
impl<S> StructuralPartialEq for ParsedExpr<S>
Auto Trait Implementations§
impl<S> Freeze for ParsedExpr<S>where
S: Freeze,
impl<S> RefUnwindSafe for ParsedExpr<S>where
S: RefUnwindSafe,
impl<S> Send for ParsedExpr<S>where
S: Send,
impl<S> Sync for ParsedExpr<S>where
S: Sync,
impl<S> Unpin for ParsedExpr<S>where
S: Unpin,
impl<S> UnwindSafe for ParsedExpr<S>where
S: 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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