Skip to main content

## HasNodeId

# Trait HasNodeId

Source

    pub trait HasNodeId {
        // Required methods
        fn node_id(&self) -> NodeId;
        fn node_id_mut(&mut self) -> &mut NodeId;
    }

Expand description

A trait for AST nodes having an ID.

## Required Methods§

Source

#### fn node_id(&self) -> NodeId

Source

#### fn node_id_mut(&mut self) -> &mut NodeId

## Implementations on Foreign Types§

Source§

### impl<T: HasNodeId> HasNodeId for Box<T>

Source§

#### fn node_id(&self) -> NodeId

Source§

#### fn node_id_mut(&mut self) -> &mut NodeId

## Implementors§

Source§

### impl HasNodeId for Arm

Source§

### impl HasNodeId for Crate

Source§

### impl HasNodeId for Expr

Source§

### impl HasNodeId for ExprField

Source§

### impl HasNodeId for FieldDef

Source§

### impl HasNodeId for GenericParam

Source§

### impl HasNodeId for Item

Source§

### impl HasNodeId for Param

Source§

### impl HasNodeId for Pat

Source§

### impl HasNodeId for PatField

Source§

### impl HasNodeId for Stmt

Source§

### impl HasNodeId for Ty

Source§

### impl HasNodeId for Variant

Source§

### impl HasNodeId for WherePredicate

Source§

### impl HasNodeId for AssocItem

Source§

### impl HasNodeId for ForeignItem

Source§

### impl<Wrapped: HasNodeId, Tag> HasNodeId for AstNodeWrapper<Wrapped, Tag>