[][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.

Implementations

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<'a> WalkVisitor<'a> for NodeId[src]

Auto Trait Implementations

impl RefUnwindSafe for NodeId

impl Send for NodeId

impl Sync for NodeId

impl Unpin for NodeId

impl UnwindSafe for NodeId

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.