Struct piston_meta::meta_rules::SeparateBy [] [src]

pub struct SeparateBy {
    pub rule: Rule,
    pub by: Rule,
    pub optional: bool,
    pub allow_trail: bool,
    pub debug_id: DebugId,
}

Stores inforamtion about separated by.

Fields

The rule to separate.

The rule to separate by.

Whether the rule must occur at least once.

Whether the rule can end with separator.

A debug id to track down the rule generating an error.

Methods

impl SeparateBy
[src]

Parses rule repeatedly separated by another rule.

Trait Implementations

impl Clone for SeparateBy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SeparateBy
[src]

Formats the value using the given formatter.

impl PartialEq for SeparateBy
[src]

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

This method tests for !=.