pub struct TokenStream(/* private fields */);Expand description
Wrapper around the proc_macro2 TokenStream.
Trait Implementations§
Source§impl From<TokenStream> for TokenStream
impl From<TokenStream> for TokenStream
Source§fn from(value: TokenStream) -> Self
fn from(value: TokenStream) -> Self
Converts to this type from the input type.
Source§impl Group<TokenStream> for Group
impl Group<TokenStream> for Group
Source§impl Into<TokenStream> for TokenStream
impl Into<TokenStream> for TokenStream
Source§fn into(self) -> TokenStream
fn into(self) -> TokenStream
Converts this type into the (usually inferred) input type.
Source§impl IntoIterator for TokenStream
impl IntoIterator for TokenStream
Source§impl TokenStream for TokenStream
impl TokenStream for TokenStream
Auto Trait Implementations§
impl Freeze for TokenStream
impl RefUnwindSafe for TokenStream
impl !Send for TokenStream
impl !Sync for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
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
Source§impl<T> IntoTokenStream for Twhere
T: TokenStream,
impl<T> IntoTokenStream for Twhere
T: TokenStream,
Source§type TokenStream = T
type TokenStream = T
This is the type of token stream that this trait converts into.
Source§fn into_token_stream(self) -> <T as IntoTokenStream>::TokenStream
fn into_token_stream(self) -> <T as IntoTokenStream>::TokenStream
Converts this type into a token stream.