Struct syntax::tokenstream::ThinTokenStream [] [src]

pub struct ThinTokenStream(_);
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

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]

[src]

Formats the value using the given formatter.

impl Clone for ThinTokenStream
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<TokenStream> for ThinTokenStream
[src]

[src]

Performs the conversion.

impl From<ThinTokenStream> for TokenStream
[src]

[src]

Performs the conversion.

impl Eq for ThinTokenStream
[src]

impl PartialEq<ThinTokenStream> for ThinTokenStream
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PartialEq<ThinTokenStream> for ThinTokenStream
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Encodable for ThinTokenStream
[src]

[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Decodable for ThinTokenStream
[src]

[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl Hash for ThinTokenStream
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more