pub enum TokenTree {
Ident(Token),
}Expand description
A single token or a delimited sequence of token trees.
Variants§
Implementations§
Trait Implementations§
Source§impl Extend<TokenTree> for TokenStream
impl Extend<TokenTree> for TokenStream
Source§fn extend<T: IntoIterator<Item = TokenTree>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = TokenTree>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl ToPrimitiveTokenStream for TokenTree
impl ToPrimitiveTokenStream for TokenTree
Source§type Iter = Once<PrimitiveToken>
type Iter = Once<PrimitiveToken>
Iterator type for PrimitiveTokens.
Source§fn to_primitive_token_stream(&self) -> Self::Iter
fn to_primitive_token_stream(&self) -> Self::Iter
Method that turns given item to a PrimitiveTokenStream iterator.
impl Eq for TokenTree
impl StructuralPartialEq for TokenTree
Auto Trait Implementations§
impl Freeze for TokenTree
impl !RefUnwindSafe for TokenTree
impl !Send for TokenTree
impl !Sync for TokenTree
impl Unpin for TokenTree
impl !UnwindSafe for TokenTree
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