#[non_exhaustive]pub enum RNode {
Show 17 variants
Param(u16),
Let(u16),
Lit(Literal),
Un(UnOp, NodeId),
Bin(BinOp, NodeId, NodeId),
Cmp(CmpOpExt, NodeId, NodeId),
Zext(NodeId),
Sext(NodeId),
Extract(WExpr, NodeId),
Concat(NodeId, NodeId),
Select(NodeId, NodeId, NodeId),
And(NodeId, NodeId),
Or(NodeId, NodeId),
Not(NodeId),
Fact(FactPred, NodeId, Option<NodeId>),
ConstP(ConstPred, NodeId),
Fp(FpNode),
}Expand description
One node of a rule’s pattern, template, guard or let expression.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Param(u16)
A parameter.
Let(u16)
A let value.
Lit(Literal)
A literal.
Un(UnOp, NodeId)
A unary operator.
Bin(BinOp, NodeId, NodeId)
A binary operator.
Cmp(CmpOpExt, NodeId, NodeId)
A comparison (1 bit).
Zext(NodeId)
Zero extension to the node’s width.
Sext(NodeId)
Sign extension to the node’s width.
Extract(WExpr, NodeId)
Bits [lo, lo + W) of the operand.
Concat(NodeId, NodeId)
Concatenation (high, low).
Select(NodeId, NodeId, NodeId)
Selection (1-bit condition).
And(NodeId, NodeId)
Guard conjunction.
Or(NodeId, NodeId)
Guard disjunction.
Not(NodeId)
Guard negation (never over a fact predicate).
Fact(FactPred, NodeId, Option<NodeId>)
A fact predicate (first argument is a parameter).
ConstP(ConstPred, NodeId)
A constant predicate.
Fp(FpNode)
A floating-point operation.
Trait Implementations§
impl Eq for RNode
impl StructuralPartialEq for RNode
Auto Trait Implementations§
impl Forget for RNode
impl Freeze for RNode
impl Move for RNode
impl RefUnwindSafe for RNode
impl Send for RNode
impl Sync for RNode
impl Unpin for RNode
impl UnsafeUnpin for RNode
impl UnwindSafe for RNode
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