Struct ra_ap_tt::TokenId[][src]

pub struct TokenId(pub u32);

Represents identity of the token.

For hygiene purposes, we need to track which expanded tokens originated from which source tokens. We do it by assigning an distinct identity to each source token and making sure that identities are preserved during macro expansion.

Implementations

impl TokenId[src]

pub const fn unspecified() -> TokenId[src]

Trait Implementations

impl Clone for TokenId[src]

impl Copy for TokenId[src]

impl Debug for TokenId[src]

impl Eq for TokenId[src]

impl Hash for TokenId[src]

impl PartialEq<TokenId> for TokenId[src]

impl StructuralEq for TokenId[src]

impl StructuralPartialEq for TokenId[src]

Auto Trait Implementations

impl RefUnwindSafe for TokenId

impl Send for TokenId

impl Sync for TokenId

impl Unpin for TokenId

impl UnwindSafe for TokenId

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