[−][src]Enum rustc_expand::mbe::macro_parser::TokenTreeOrTokenTreeSlice

pub(in mbe::macro_parser) enum TokenTreeOrTokenTreeSlice<'tt> {
    Tt(TokenTree),
    TtSeq(&'tt [TokenTree]),
}

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)
TtSeq(&'tt [TokenTree])

Implementations

impl<'tt> TokenTreeOrTokenTreeSlice<'tt>[src]

pub(in mbe::macro_parser) fn len(
    &self
) -> usize
[src]

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

pub(in mbe::macro_parser) fn get_tt(
    &self,
    index: usize
) -> TokenTree
[src]

The index-th token tree of self.

Trait Implementations

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

Auto Trait Implementations

impl<'tt> !RefUnwindSafe for TokenTreeOrTokenTreeSlice<'tt>

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

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

impl<'tt> Unpin for TokenTreeOrTokenTreeSlice<'tt>

impl<'tt> !UnwindSafe for TokenTreeOrTokenTreeSlice<'tt>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.