[][src]Struct moore::NodeId

pub struct NodeId(_);

A positive, small ID assigned to nodes in the AST and derived data structures. Used as a lightweight way to refer to individual nodes, e.g. during symbol table construction and name resolution.


impl NodeId[src]

pub fn new(x: usize) -> NodeId[src]

pub fn alloc() -> NodeId[src]

Allocate a new unused ID. The IDs generated by this function are monotonically increasing.

pub fn from_u32(x: u32) -> NodeId[src]

pub fn as_usize(&self) -> usize[src]

pub fn as_u32(&self) -> u32[src]

Trait Implementations

impl Clone for NodeId[src]

impl Copy for NodeId[src]

impl Debug for NodeId[src]

impl Eq for NodeId[src]

impl From<NodeId> for Def[src]

impl Hash for NodeId[src]

impl Into<NodeId> for RootRef[src]

impl Into<NodeId> for LibRef[src]

impl Into<NodeId> for Def[src]

impl Into<NodeId> for ScopeRef[src]

impl IntoNodeEnvId for NodeId[src]

impl Ord for NodeId[src]

impl PartialEq<NodeId> for NodeId[src]

impl PartialOrd<NodeId> for NodeId[src]

impl StructuralEq for NodeId[src]

impl StructuralPartialEq for NodeId[src]

impl<'a> WalkVisitor<'a> for NodeId[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.