Struct lexx::SequenceRepetition [] [src]

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

A sequence of token trees

Fields

tts: Vec<TokenTree>

The sequence of token trees

separator: Option<Token>

The optional separator

op: KleeneOp

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

num_captures: usize

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

Trait Implementations

impl Debug for SequenceRepetition

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

impl Hash for SequenceRepetition

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

impl Decodable for SequenceRepetition

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

impl Encodable for SequenceRepetition

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

impl Eq for SequenceRepetition

impl PartialEq<SequenceRepetition> for SequenceRepetition

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

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

impl Clone for SequenceRepetition

fn clone(&self) -> SequenceRepetition