Enum syntax::ext::tt::macro_parser::TokenTreeOrTokenTreeSlice [−][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(&'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?
Methods
impl<'a> TokenTreeOrTokenTreeSlice<'a>
[src]
impl<'a> TokenTreeOrTokenTreeSlice<'a>
fn 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<'a> Clone for TokenTreeOrTokenTreeSlice<'a>
[src]
impl<'a> Clone for TokenTreeOrTokenTreeSlice<'a>
fn clone(&self) -> TokenTreeOrTokenTreeSlice<'a>
[src]
fn clone(&self) -> TokenTreeOrTokenTreeSlice<'a>
Returns 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<'a> !Send for TokenTreeOrTokenTreeSlice<'a>
impl<'a> !Send for TokenTreeOrTokenTreeSlice<'a>
impl<'a> !Sync for TokenTreeOrTokenTreeSlice<'a>
impl<'a> !Sync for TokenTreeOrTokenTreeSlice<'a>