pub struct Repeat<P, S> {
pub parser: P,
pub separator: S,
pub min: usize,
}Fields§
§parser: P§separator: S§min: usizeTrait Implementations§
Source§impl<'input, G, P, S> Symbol<'input, G> for Repeat<P, S>
impl<'input, G, P, S> Symbol<'input, G> for Repeat<P, S>
type Output = Vec<<P as Symbol<'input, G>>::Output>
fn pretty_print(&self) -> String
fn parse( &self, grammar: &mut G, start: Input<'input>, ) -> ParseResult<'input, Vec<P::Output>>
fn parse_complete( &self, grammar: &mut G, text: &'input str, ) -> Result<Self::Output, Error<'input>>
fn parse_prefix( &self, grammar: &mut G, text: &'input str, ) -> ParseResult<'input, Self::Output>
Auto Trait Implementations§
impl<P, S> Freeze for Repeat<P, S>
impl<P, S> RefUnwindSafe for Repeat<P, S>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<P, S> Send for Repeat<P, S>
impl<P, S> Sync for Repeat<P, S>
impl<P, S> Unpin for Repeat<P, S>
impl<P, S> UnwindSafe for Repeat<P, S>where
P: UnwindSafe,
S: 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