[−][src]Enum rustc_expand::mbe::transcribe::Frame

enum Frame {
    Delimited {
        forest: Lrc<Delimited>,
        idx: usize,
        span: DelimSpan,
    },
    Sequence {
        forest: Lrc<SequenceRepetition>,
        idx: usize,
        sep: Option<Token>,
    },
}

An iterator over the token trees in a delimited token tree ({ ... }) or a sequence ($(...)).

Variants

Delimited

Fields of Delimited

forest: Lrc<Delimited>idx: usizespan: DelimSpan
Sequence

Fields of Sequence

forest: Lrc<SequenceRepetition>idx: usizesep: Option<Token>

Implementations

impl Frame[src]

fn new(tts: Vec<TokenTree>) -> Frameⓘ

Notable traits for Frame

impl Iterator for Frame type Item = TokenTree;
[src]

Construct a new frame around the delimited set of tokens.

Trait Implementations

impl Iterator for Frame[src]

type Item = TokenTree

The type of the elements being iterated over.

Auto Trait Implementations

impl !RefUnwindSafe for Frame[src]

impl !Send for Frame[src]

impl !Sync for Frame[src]

impl Unpin for Frame[src]

impl !UnwindSafe for Frame[src]

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<I> IntoIterator for I where
    I: Iterator, 
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.