pub enum TestExpr {
False,
Literal(String),
And(Box<TestExpr>, Box<TestExpr>),
Or(Box<TestExpr>, Box<TestExpr>),
Not(Box<TestExpr>),
Parenthesized(Box<TestExpr>),
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<TestExpr>, Box<TestExpr>)
Logical AND operation on two nested expressions.
Or(Box<TestExpr>, Box<TestExpr>)
Logical OR operation on two nested expressions.
Not(Box<TestExpr>)
Logical NOT operation on a nested expression.
Parenthesized(Box<TestExpr>)
A parenthesized expression.
UnaryTest(UnaryPredicate, String)
A unary test operation.
BinaryTest(BinaryPredicate, String, String)
A binary test operation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestExpr
impl RefUnwindSafe for TestExpr
impl Send for TestExpr
impl Sync for TestExpr
impl Unpin 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