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 filterset 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>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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