pub struct RepeatPattern { /* private fields */ }Expand description
A pattern that matches with repetition using a quantifier.
Implementations§
Source§impl RepeatPattern
impl RepeatPattern
Sourcepub fn repeat(pattern: Pattern, quantifier: Quantifier) -> Self
pub fn repeat(pattern: Pattern, quantifier: Quantifier) -> Self
Creates a new RepeatPattern with the specified sub-pattern and
quantifier.
Sourcepub fn new(pattern: Pattern) -> Self
pub fn new(pattern: Pattern) -> Self
Creates a new RepeatPattern with a quantifier that matches exactly
once.
Sourcepub fn quantifier(&self) -> &Quantifier
pub fn quantifier(&self) -> &Quantifier
Returns the quantifier of this repeat pattern.
Trait Implementations§
Source§impl Clone for RepeatPattern
impl Clone for RepeatPattern
Source§fn clone(&self) -> RepeatPattern
fn clone(&self) -> RepeatPattern
Returns a duplicate 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 Debug for RepeatPattern
impl Debug for RepeatPattern
Source§impl Display for RepeatPattern
impl Display for RepeatPattern
Source§impl PartialEq for RepeatPattern
impl PartialEq for RepeatPattern
impl Eq for RepeatPattern
impl StructuralPartialEq for RepeatPattern
Auto Trait Implementations§
impl Freeze for RepeatPattern
impl RefUnwindSafe for RepeatPattern
impl Send for RepeatPattern
impl Sync for RepeatPattern
impl Unpin for RepeatPattern
impl UnwindSafe for RepeatPattern
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