[−][src]Struct rustc_expand::mbe::SequenceRepetition

pub(in mbe) struct SequenceRepetition {
    tts: Vec<TokenTree>,
    separator: Option<Token>,
    kleene: KleeneToken,
    num_captures: usize,
}

Fields

tts: Vec<TokenTree>

The sequence of token trees

separator: Option<Token>

The optional separator

kleene: KleeneToken

Whether the sequence can be repeated zero (*), or one or more times (+)

num_captures: usize

The number of Matchs that appear in the sequence (and subsequences)

Trait Implementations

impl Clone for SequenceRepetition[src]

impl Debug for SequenceRepetition[src]

impl<__D: Decoder> Decodable<__D> for SequenceRepetition[src]

impl<__E: Encoder> Encodable<__E> for SequenceRepetition[src]

impl PartialEq<SequenceRepetition> for SequenceRepetition[src]

impl StructuralPartialEq for SequenceRepetition[src]

Auto Trait Implementations

impl !RefUnwindSafe for SequenceRepetition

impl !Send for SequenceRepetition

impl !Sync for SequenceRepetition

impl Unpin for SequenceRepetition

impl !UnwindSafe for SequenceRepetition

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.