Struct cfg::sequence::Sequence [] [src]

pub struct Sequence<H> {
    pub lhs: Symbol,
    pub rhs: Symbol,
    pub start: u32,
    pub end: Option<u32>,
    pub separator: Separator,
    pub history: H,
}

Sequence rule representation.

Fields

The rule's left-hand side.

The rule's right-hand side.

The minimum number of repetitions.

Either the inclusive maximum number of repetitions, or None if the number of repetitions is unlimited.

The way elements are separated in a sequence, or Null.

The history carried with the sequence rule.

Methods

impl<H> Sequence<H>
[src]

Assigns the inclusive range of the number of repetitions.

Assigns the separator symbol and mode of separation.

Trait Implementations

impl<H: Clone> Clone for Sequence<H>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<H: Debug> Debug for Sequence<H>
[src]

Formats the value using the given formatter.

impl<H: Eq> Eq for Sequence<H>
[src]

impl<H: Hash> Hash for Sequence<H>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<H: PartialEq> PartialEq for Sequence<H>
[src]

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

This method tests for !=.