pub enum ItemExpr {
Show 13 variants
Value(String),
ItemReference(ItemReference),
Eq(BTreeSet<ItemExpr>),
Ne(BTreeSet<ItemExpr>),
Lt(BTreeSet<ItemExpr>),
Gt(BTreeSet<ItemExpr>),
Lte(BTreeSet<ItemExpr>),
Gte(BTreeSet<ItemExpr>),
And(BTreeSet<ItemExpr>),
Or(BTreeSet<ItemExpr>),
Sub(Box<ItemExpr>),
Not(Box<ItemExpr>),
Unresolved(String),
}Expand description
Wrapper around an expression, resolved into the macro values, and item references.
Variants§
Value(String)
A value, typically the result of a resolved symbol to a macro
ItemReference(ItemReference)
An item reference, typically the result of a resolved symbol to an item reference.
Eq(BTreeSet<ItemExpr>)
An equals expression
Ne(BTreeSet<ItemExpr>)
A Not equals expression
Lt(BTreeSet<ItemExpr>)
A Lesser than expression
Gt(BTreeSet<ItemExpr>)
A Greater than expression
Lte(BTreeSet<ItemExpr>)
A Lesser than or equal expression
Gte(BTreeSet<ItemExpr>)
A Greater than or equal expression
And(BTreeSet<ItemExpr>)
An and expression
Or(BTreeSet<ItemExpr>)
An or expression
Sub(Box<ItemExpr>)
A subexpression, typically just parentheses surrounding the expression
Not(Box<ItemExpr>)
A negation expression
Unresolved(String)
Could not resolve value
Trait Implementations§
Source§impl Ord for ItemExpr
impl Ord for ItemExpr
Source§impl PartialOrd for ItemExpr
impl PartialOrd for ItemExpr
impl Eq for ItemExpr
impl StructuralPartialEq for ItemExpr
Auto Trait Implementations§
impl Freeze for ItemExpr
impl RefUnwindSafe for ItemExpr
impl Send for ItemExpr
impl Sync for ItemExpr
impl Unpin for ItemExpr
impl UnwindSafe for ItemExpr
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