Enum syntax::ext::tt::macro_parser::TokenTreeOrTokenTreeSlice[][src]

enum TokenTreeOrTokenTreeSlice<'a> {
    Tt(TokenTree),
    TtSeq(&'a [TokenTree]),
}
🔬 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?

Either a sequence of token trees or a single one. This is used as the representation of the sequence of tokens that make up a matcher.

Variants

🔬 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?

🔬 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?

Methods

impl<'a> TokenTreeOrTokenTreeSlice<'a>
[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?

Returns the number of constituent top-level token trees of self (top-level in that it will not recursively descend into subtrees).

🔬 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 the index-th token tree of self.

Trait Implementations

impl<'a> Clone for TokenTreeOrTokenTreeSlice<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> !Send for TokenTreeOrTokenTreeSlice<'a>

impl<'a> !Sync for TokenTreeOrTokenTreeSlice<'a>