pub enum NodeId {
Address(usize),
IdentExpr(IdentKey),
FuncTypeExpr(FuncTypeKey),
LabeledStmt(LabeledStmtKey),
AssignStmt(AssignStmtKey),
FuncDecl(FuncDeclKey),
FuncType(FuncTypeKey),
Field(FieldKey),
File(IdentKey),
}
Expand description
NodeId can be used as key of HashMaps
Variants§
Address(usize)
IdentExpr(IdentKey)
FuncTypeExpr(FuncTypeKey)
LabeledStmt(LabeledStmtKey)
AssignStmt(AssignStmtKey)
FuncDecl(FuncDeclKey)
FuncType(FuncTypeKey)
Field(FieldKey)
File(IdentKey)
Trait Implementations§
source§impl Ord for NodeId
impl Ord for NodeId
source§impl PartialEq<NodeId> for NodeId
impl PartialEq<NodeId> for NodeId
source§impl PartialOrd<NodeId> for NodeId
impl PartialOrd<NodeId> for NodeId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more