Struct syntex_syntax::tokenstream::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

The sequence of token trees

The optional separator

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

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

Trait Implementations

impl Clone for SequenceRepetition
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SequenceRepetition
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SequenceRepetition
[src]

impl Encodable for SequenceRepetition
[src]

Serialize a value using an Encoder.

impl Decodable for SequenceRepetition
[src]

Deserialize a value using a Decoder.

impl Hash for SequenceRepetition
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for SequenceRepetition
[src]

Formats the value using the given formatter.