Struct syntax::tokenstream::ThinTokenStream
[−]
[src]
pub struct ThinTokenStream(_);
The TokenStream
type is large enough to represent a single TokenTree
without allocation.
ThinTokenStream
is smaller, but needs to allocate to represent a single TokenTree
.
We must use ThinTokenStream
in TokenTree::Delimited
to avoid infinite size due to recursion.
Trait Implementations
impl Debug for ThinTokenStream
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for ThinTokenStream
[src]
fn clone(&self) -> ThinTokenStream
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<TokenStream> for ThinTokenStream
[src]
fn from(stream: TokenStream) -> ThinTokenStream
[src]
Performs the conversion.
impl From<ThinTokenStream> for TokenStream
[src]
fn from(stream: ThinTokenStream) -> TokenStream
[src]
Performs the conversion.
impl Eq for ThinTokenStream
[src]
impl PartialEq<ThinTokenStream> for ThinTokenStream
[src]
fn eq(&self, other: &ThinTokenStream) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.