Enum regex_syntax::ast::RepetitionRange [] [src]

pub enum RepetitionRange {
    Exactly(u32),
    AtLeast(u32),
    Bounded(u32u32),
}

A range repetition operator.

Variants

{m}

{m,}

{m,n}

Methods

impl RepetitionRange
[src]

[src]

Returns true if and only if this repetition range is valid.

The only case where a repetition range is invalid is if it is bounded and its start is greater than its end.

Trait Implementations

impl Clone for RepetitionRange
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RepetitionRange
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for RepetitionRange
[src]

impl PartialEq for RepetitionRange
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations