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§
impl Eq for NodeId
impl StructuralPartialEq for NodeId
Auto Trait Implementations§
impl Freeze for NodeId
impl RefUnwindSafe for NodeId
impl Send for NodeId
impl Sync for NodeId
impl Unpin for NodeId
impl UnwindSafe for NodeId
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