Enum syntax::ext::tt::macro_parser::TokenTreeOrTokenTreeVec [−][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?
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
Tt(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?
TtSeq(Vec<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?
Methods
impl TokenTreeOrTokenTreeVec[src]
impl TokenTreeOrTokenTreeVecfn len(&self) -> usize[src]
fn len(&self) -> usize🔬 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).
fn get_tt(&self, index: usize) -> TokenTree[src]
fn get_tt(&self, index: usize) -> 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?
The the index-th token tree of self.
Trait Implementations
impl Clone for TokenTreeOrTokenTreeVec[src]
impl Clone for TokenTreeOrTokenTreeVecfn clone(&self) -> TokenTreeOrTokenTreeVec[src]
fn clone(&self) -> TokenTreeOrTokenTreeVecReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !Send for TokenTreeOrTokenTreeVec
impl !Send for TokenTreeOrTokenTreeVecimpl !Sync for TokenTreeOrTokenTreeVec
impl !Sync for TokenTreeOrTokenTreeVec