Struct pomsky_syntax::exprs::RepetitionKind
source · Expand description
A repetition in its most canonical form, {x,y}.
For example:
'x'?is equivalent to'x'{0,1}'x'+is equivalent to'x'{1,}'x'*is equivalent to'x'{0,}
Fields§
§lower_bound: u32The lower bound, e.g. {4,}
upper_bound: Option<u32>The upper bound, e.g. {0,7}. None means infinity.
Trait Implementations§
source§impl Clone for RepetitionKind
impl Clone for RepetitionKind
source§fn clone(&self) -> RepetitionKind
fn clone(&self) -> RepetitionKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for RepetitionKind
impl Default for RepetitionKind
source§fn default() -> RepetitionKind
fn default() -> RepetitionKind
Returns the “default value” for a type. Read more