[−][src]Struct moore::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]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
pub fn cmp(&self, other: &NodeId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<NodeId> for NodeId
[src]
impl PartialOrd<NodeId> for NodeId
[src]
pub fn partial_cmp(&self, other: &NodeId) -> Option<Ordering>
[src]
pub fn lt(&self, other: &NodeId) -> bool
[src]
pub fn le(&self, other: &NodeId) -> bool
[src]
pub fn gt(&self, other: &NodeId) -> bool
[src]
pub fn ge(&self, other: &NodeId) -> bool
[src]
impl StructuralEq for NodeId
[src]
impl StructuralPartialEq for NodeId
[src]
impl<'a> WalkVisitor<'a> for NodeId
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeId
[src]
impl Send for NodeId
[src]
impl Sync for NodeId
[src]
impl Unpin for NodeId
[src]
impl UnwindSafe for NodeId
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,