pub struct RepeatAny<T, SEP> { /* private fields */ }Expand description
Tool that matches repetitions with separator.
Like Repeat but without specifying a minimum number of repetitions. Therefore. it will
always match.
Implementations§
Source§impl<T, SEP> RepeatAny<T, SEP>
impl<T, SEP> RepeatAny<T, SEP>
Sourcepub const fn new(atom: T, sep: SEP, max: Option<usize>) -> Self
pub const fn new(atom: T, sep: SEP, max: Option<usize>) -> Self
Create a new RepeatAny with specified separator.
Sourcepub const fn new_bounds(atom: T, sep: SEP, max: usize) -> Self
pub const fn new_bounds(atom: T, sep: SEP, max: usize) -> Self
Create a new RepeatAny with specified separator and upper bound.
Sourcepub const fn new_unbounded(atom: T, sep: SEP) -> Self
pub const fn new_unbounded(atom: T, sep: SEP) -> Self
Create a new RepeatAny with specified separator without upper bound
Trait Implementations§
Source§impl<'a, T, SEP> AlwaysTool<'a> for RepeatAny<T, SEP>
impl<'a, T, SEP> AlwaysTool<'a> for RepeatAny<T, SEP>
impl<T: Copy, SEP: Copy> Copy for RepeatAny<T, SEP>
Auto Trait Implementations§
impl<T, SEP> Freeze for RepeatAny<T, SEP>
impl<T, SEP> RefUnwindSafe for RepeatAny<T, SEP>where
T: RefUnwindSafe,
SEP: RefUnwindSafe,
impl<T, SEP> Send for RepeatAny<T, SEP>
impl<T, SEP> Sync for RepeatAny<T, SEP>
impl<T, SEP> Unpin for RepeatAny<T, SEP>
impl<T, SEP> UnsafeUnpin for RepeatAny<T, SEP>where
T: UnsafeUnpin,
SEP: UnsafeUnpin,
impl<T, SEP> UnwindSafe for RepeatAny<T, SEP>where
T: UnwindSafe,
SEP: UnwindSafe,
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