Struct syntax::ast::SequenceRepetitionUnstable [-] [+] [src]

pub struct SequenceRepetition {
    pub tts: Vec<TokenTree>,
    pub separator: Option<Token>,
    pub op: KleeneOp,
    pub num_captures: usize,
}

A sequence of token treesee

Fields

tts

The sequence of token trees

separator

The optional separator

op

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

num_captures

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

Trait Implementations

Derived Implementations

impl Debug for SequenceRepetition

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for SequenceRepetition

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for SequenceRepetition

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<SequenceRepetition, Error>

impl Encodable for SequenceRepetition

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for SequenceRepetition

fn assert_receiver_is_total_eq(&self)

impl PartialEq for SequenceRepetition

fn eq(&self, __arg_0: &SequenceRepetition) -> bool

fn ne(&self, __arg_0: &SequenceRepetition) -> bool

impl Clone for SequenceRepetition

fn clone(&self) -> SequenceRepetition

fn clone_from(&mut self, source: &Self)