Struct proc_macro2::TokenStream
[−]
[src]
pub struct TokenStream(_);
Methods
impl TokenStream[src]
impl TokenStreamTrait Implementations
impl Clone for TokenStream[src]
impl Clone for TokenStreamfn clone(&self) -> TokenStream[src]
fn clone(&self) -> TokenStreamReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl FromStr for TokenStream[src]
impl FromStr for TokenStreamtype Err = LexError
The associated error which can be returned from parsing.
fn from_str(src: &str) -> Result<TokenStream, LexError>[src]
fn from_str(src: &str) -> Result<TokenStream, LexError>Parses a string s to return a value of this type. Read more
impl From<TokenStream> for TokenStream[src]
impl From<TokenStream> for TokenStreamfn from(inner: TokenStream) -> TokenStream[src]
fn from(inner: TokenStream) -> TokenStreamPerforms the conversion.
impl From<TokenStream> for TokenStream[src]
impl From<TokenStream> for TokenStreamfn from(inner: TokenStream) -> TokenStream[src]
fn from(inner: TokenStream) -> TokenStreamPerforms the conversion.
impl From<TokenTree> for TokenStream[src]
impl From<TokenTree> for TokenStreamfn from(tree: TokenTree) -> TokenStream[src]
fn from(tree: TokenTree) -> TokenStreamPerforms the conversion.
impl<T: Into<TokenStream>> FromIterator<T> for TokenStream[src]
impl<T: Into<TokenStream>> FromIterator<T> for TokenStreamfn from_iter<I: IntoIterator<Item = T>>(streams: I) -> Self[src]
fn from_iter<I: IntoIterator<Item = T>>(streams: I) -> SelfCreates a value from an iterator. Read more
impl IntoIterator for TokenStream[src]
impl IntoIterator for TokenStreamtype Item = TokenTree
The type of the elements being iterated over.
type IntoIter = TokenTreeIter
Which kind of iterator are we turning this into?
ⓘImportant traits for TokenTreeIterfn into_iter(self) -> TokenTreeIter[src]
ⓘImportant traits for TokenTreeIter
fn into_iter(self) -> TokenTreeIterCreates an iterator from a value. Read more
impl Debug for TokenStream[src]
impl Debug for TokenStreamfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for TokenStream[src]
impl Display for TokenStreamAuto Trait Implementations
impl !Send for TokenStream
impl !Send for TokenStreamimpl !Sync for TokenStream
impl !Sync for TokenStream