rustc_ast::ast_traits

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

Implementors§