Enum proc_macro::bridge::TokenTree
source · pub enum TokenTree<TokenStream, Span, Symbol> {
Group(Group<TokenStream, Span>),
Punct(Punct<Span>),
Ident(Ident<Span, Symbol>),
Literal(Literal<Span, Symbol>),
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Variants§
Group(Group<TokenStream, Span>)
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Punct(Punct<Span>)
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Ident(Ident<Span, Symbol>)
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Literal(Literal<Span, Symbol>)
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Trait Implementations§
source§impl<TokenStream: Clone, Span: Clone, Symbol: Clone> Clone for TokenTree<TokenStream, Span, Symbol>
impl<TokenStream: Clone, Span: Clone, Symbol: Clone> Clone for TokenTree<TokenStream, Span, Symbol>
source§impl<'a, S, TokenStream: for<'s> DecodeMut<'a, 's, S>, Span: for<'s> DecodeMut<'a, 's, S>, Symbol: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S> for TokenTree<TokenStream, Span, Symbol>
impl<'a, S, TokenStream: for<'s> DecodeMut<'a, 's, S>, Span: for<'s> DecodeMut<'a, 's, S>, Symbol: for<'s> DecodeMut<'a, 's, S>> DecodeMut<'a, '_, S> for TokenTree<TokenStream, Span, Symbol>
source§impl<S, TokenStream: Encode<S>, Span: Encode<S>, Symbol: Encode<S>> Encode<S> for TokenTree<TokenStream, Span, Symbol>
impl<S, TokenStream: Encode<S>, Span: Encode<S>, Symbol: Encode<S>> Encode<S> for TokenTree<TokenStream, Span, Symbol>
source§impl<TokenStream: Mark, Span: Mark, Symbol: Mark> Mark for TokenTree<TokenStream, Span, Symbol>
impl<TokenStream: Mark, Span: Mark, Symbol: Mark> Mark for TokenTree<TokenStream, Span, Symbol>
source§impl<TokenStream: Unmark, Span: Unmark, Symbol: Unmark> Unmark for TokenTree<TokenStream, Span, Symbol>
impl<TokenStream: Unmark, Span: Unmark, Symbol: Unmark> Unmark for TokenTree<TokenStream, Span, Symbol>
Auto Trait Implementations§
impl<TokenStream, Span, Symbol> RefUnwindSafe for TokenTree<TokenStream, Span, Symbol>where Span: RefUnwindSafe, Symbol: RefUnwindSafe, TokenStream: RefUnwindSafe,
impl<TokenStream, Span, Symbol> Send for TokenTree<TokenStream, Span, Symbol>where Span: Send, Symbol: Send, TokenStream: Send,
impl<TokenStream, Span, Symbol> Sync for TokenTree<TokenStream, Span, Symbol>where Span: Sync, Symbol: Sync, TokenStream: Sync,
impl<TokenStream, Span, Symbol> Unpin for TokenTree<TokenStream, Span, Symbol>where Span: Unpin, Symbol: Unpin, TokenStream: Unpin,
impl<TokenStream, Span, Symbol> UnwindSafe for TokenTree<TokenStream, Span, Symbol>where Span: UnwindSafe, Symbol: UnwindSafe, TokenStream: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more