pub enum RepetitionQuantifier {
ZeroOrMore,
OneOrMore,
AtMostOne,
Exactly(u32),
AtLeast(u32),
AtMost(u32),
Range(u32, u32),
}Expand description
A row-pattern quantifier — the repetition count applied to a pattern factor.
A tag enum (its bounds are plain u32s, no spanned children). Mirrors
sqlparser-rs verbatim. The AtMostOne (?) form has no lexer-reachable parser
path — see the module docs — but is retained for parity and lossless rendering.
Variants§
ZeroOrMore
* — zero or more.
OneOrMore
+ — one or more.
AtMostOne
? — zero or one.
Exactly(u32)
{n} — exactly n.
AtLeast(u32)
{n,} — at least n.
AtMost(u32)
{,m} — at most m.
Range(u32, u32)
{n,m} — between n and m (inclusive).
Trait Implementations§
Source§impl Clone for RepetitionQuantifier
impl Clone for RepetitionQuantifier
Source§fn clone(&self) -> RepetitionQuantifier
fn clone(&self) -> RepetitionQuantifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RepetitionQuantifier
Source§impl Debug for RepetitionQuantifier
impl Debug for RepetitionQuantifier
Source§impl<'de> Deserialize<'de> for RepetitionQuantifier
impl<'de> Deserialize<'de> for RepetitionQuantifier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RepetitionQuantifier
Source§impl Hash for RepetitionQuantifier
impl Hash for RepetitionQuantifier
Source§impl PartialEq for RepetitionQuantifier
impl PartialEq for RepetitionQuantifier
Source§impl Render for RepetitionQuantifier
impl Render for RepetitionQuantifier
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for RepetitionQuantifier
impl Serialize for RepetitionQuantifier
impl StructuralPartialEq for RepetitionQuantifier
Auto Trait Implementations§
impl Freeze for RepetitionQuantifier
impl RefUnwindSafe for RepetitionQuantifier
impl Send for RepetitionQuantifier
impl Sync for RepetitionQuantifier
impl Unpin for RepetitionQuantifier
impl UnsafeUnpin for RepetitionQuantifier
impl UnwindSafe for RepetitionQuantifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more