Enum regex_syntax::ast::RepetitionRange
[−]
[src]
A range repetition operator.
Variants
Exactly(u32)
{m}
AtLeast(u32)
{m,}
Bounded(u32, u32)
{m,n}
Methods
impl RepetitionRange
[src]
impl RepetitionRange
pub fn is_valid(&self) -> bool
[src]
pub fn is_valid(&self) -> bool
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]
impl Clone for RepetitionRange
fn clone(&self) -> RepetitionRange
[src]
fn clone(&self) -> RepetitionRange
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RepetitionRange
[src]
impl Debug for RepetitionRange
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for RepetitionRange
[src]
impl Eq for RepetitionRange
impl PartialEq for RepetitionRange
[src]
impl PartialEq for RepetitionRange
fn eq(&self, __arg_0: &RepetitionRange) -> bool
[src]
fn eq(&self, __arg_0: &RepetitionRange) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RepetitionRange) -> bool
[src]
fn ne(&self, __arg_0: &RepetitionRange) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for RepetitionRange
impl Send for RepetitionRange
impl Sync for RepetitionRange
impl Sync for RepetitionRange