[−][src]Struct casco::proc_macro2::TokenStream
Wrapper around the proc_macro2
TokenStream
.
Trait Implementations
impl From<TokenStream> for TokenStream
[src]
fn from(value: TokenStream) -> Self
[src]
impl Group<TokenStream> for Group
[src]
impl Into<TokenStream> for TokenStream
[src]
fn into(self) -> TokenStream
[src]
impl IntoIterator for TokenStream
[src]
type IntoIter = IntoIter
Which kind of iterator are we turning this into?
type Item = TokenTree<TokenStream>
The type of the elements being iterated over.
fn into_iter(self) -> Self::IntoIter
[src]
impl TokenStream for TokenStream
[src]
type Group = Group
A delimited token stream.
type Ident = Ident
An identifier.
type Literal = Literal
A literal string ("hello"
), byte string (b"hello"
), character
('a'
), byte character (b'a'
), an integer or floating point number
with or without a suffix (1
, 1u8
, 2.3
, 2.3f32
). Boolean literals
like true
and false
do not belong here, they are Ident
s. Read more
type Punct = Punct
An Punct
is a single punctuation character like +
, -
or #
.
type Span = Span
A region of source code, along with macro expansion information.
Auto Trait Implementations
impl RefUnwindSafe for TokenStream
impl !Send for TokenStream
impl !Sync for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> IntoTokenStream for T where
T: TokenStream,
[src]
T: TokenStream,
type TokenStream = T
This is the type of token stream that this trait converts into.
fn into_token_stream(Self) -> <T as IntoTokenStream>::TokenStream
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,