Struct ra_ap_tt::TokenId [−][src]
pub struct TokenId(pub u32);
Expand description
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]
impl TokenId
[src]pub const fn unspecified() -> TokenId
[src]
Trait Implementations
impl Copy for TokenId
[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more