Struct syntax::tokenstream::ThinTokenStream
[−]
[src]
pub struct ThinTokenStream(_);
🔬 This is a nightly-only experimental API. (
rustc_private
)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]
impl Clone for ThinTokenStream
[src]
fn clone(&self) -> ThinTokenStream
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<TokenStream> for ThinTokenStream
[src]
fn from(stream: TokenStream) -> ThinTokenStream
Performs the conversion.
impl Eq for ThinTokenStream
[src]
impl PartialEq<ThinTokenStream> for ThinTokenStream
[src]
fn eq(&self, other: &ThinTokenStream) -> bool
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
This method tests for !=
.
impl Encodable for ThinTokenStream
[src]
fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Decodable for ThinTokenStream
[src]
fn decode<D: Decoder>(decoder: &mut D) -> Result<ThinTokenStream, D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
deprecated in favor of rustc-serialize on crates.io
impl Hash for ThinTokenStream
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.