Enum regex_syntax::hir::RepetitionKind
source · [−]pub enum RepetitionKind {
ZeroOrOne,
ZeroOrMore,
OneOrMore,
Range(RepetitionRange),
}
Expand description
The kind of a repetition operator.
Variants
ZeroOrOne
Matches a sub-expression zero or one times.
ZeroOrMore
Matches a sub-expression zero or more times.
OneOrMore
Matches a sub-expression one or more times.
Range(RepetitionRange)
Matches a sub-expression within a bounded range of times.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RepetitionKind
impl Send for RepetitionKind
impl Sync for RepetitionKind
impl Unpin for RepetitionKind
impl UnwindSafe for RepetitionKind
Blanket Implementations
Mutably borrows from an owned value. Read more