[]Struct rustc_ap_syntax::ast::NodeId

pub struct NodeId { /* fields omitted */ }

Methods

impl NodeId

pub const MAX_AS_U32: u32

pub const MAX: NodeId

pub fn from_usize(value: usize) -> Self

pub fn from_u32(value: u32) -> Self

pub const fn from_u32_const(value: u32) -> Self

Hacky variant of from_u32 for use in constants. This version checks the "max" constraint by using an invalid array dereference.

pub const unsafe fn from_u32_unchecked(value: u32) -> Self

pub fn index(self) -> usize

Extracts the value of this index as an integer.

pub fn as_u32(self) -> u32

Extracts the value of this index as a u32.

pub fn as_usize(self) -> usize

Extracts the value of this index as a usize.

impl NodeId[src]

Trait Implementations

impl From<NodeId> for u32

impl From<NodeId> for usize

impl From<usize> for NodeId

impl From<u32> for NodeId

impl Clone for NodeId

impl Copy for NodeId

impl Eq for NodeId

impl Ord for NodeId

impl PartialEq<NodeId> for NodeId

impl PartialOrd<NodeId> for NodeId

impl Display for NodeId[src]

impl Debug for NodeId

impl Add<usize> for NodeId

type Output = Self

The resulting type after applying the + operator.

impl Hash for NodeId

impl Step for NodeId

impl Idx for NodeId

impl UseSpecializedEncodable for NodeId[src]

impl UseSpecializedDecodable for NodeId[src]

Auto Trait Implementations

impl Send for NodeId

impl Sync for NodeId

impl Unpin for NodeId

impl UnwindSafe for NodeId

impl RefUnwindSafe for NodeId

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

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

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

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

impl<T> Erased for T[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E[src]

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