pub enum TestExpr {
False,
Literal(String),
And(Box<Self>, Box<Self>),
Or(Box<Self>, Box<Self>),
Not(Box<Self>),
Parenthesized(Box<Self>),
UnaryTest(UnaryPredicate, String),
BinaryTest(BinaryPredicate, String, String),
}Expand description
A (non-extended) test expression.
Variants§
False
Always evaluates to false.
Literal(String)
A literal string.
And(Box<Self>, Box<Self>)
Logical AND operation on two nested expressions.
Or(Box<Self>, Box<Self>)
Logical OR operation on two nested expressions.
Not(Box<Self>)
Logical NOT operation on a nested expression.
Parenthesized(Box<Self>)
A parenthesized expression.
UnaryTest(UnaryPredicate, String)
A unary test operation.
BinaryTest(BinaryPredicate, String, String)
A binary test operation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestExpr
Available on crate features serde only.
impl<'de> Deserialize<'de> for TestExpr
Available on crate features
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TestExpr
Available on crate features
serde only.impl Node for TestExpr
Source§impl SourceLocation for TestExpr
impl SourceLocation for TestExpr
Source§fn location(&self) -> Option<SourceSpan>
fn location(&self) -> Option<SourceSpan>
The location of the syntax item, when known
impl StructuralPartialEq for TestExpr
Available on crate features
serde only.Auto Trait Implementations§
impl Freeze for TestExpr
impl RefUnwindSafe for TestExpr
impl Send for TestExpr
impl Sync for TestExpr
impl Unpin for TestExpr
impl UnsafeUnpin for TestExpr
impl UnwindSafe for TestExpr
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.