Struct munch::Repeat
[−]
[src]
pub struct Repeat<A, R: Range>(pub A, pub R);
Trait Implementations
impl<A: Copy, R: Copy + Range> Copy for Repeat<A, R>[src]
impl<A: Clone, R: Clone + Range> Clone for Repeat<A, R>[src]
fn clone(&self) -> Repeat<A, R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<A: Debug, R: Debug + Range> Debug for Repeat<A, R>[src]
impl<A: PartialEq, R: PartialEq + Range> PartialEq for Repeat<A, R>[src]
fn eq(&self, __arg_0: &Repeat<A, R>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Repeat<A, R>) -> bool
This method tests for !=.
impl<A, R, Input> Parser<Input> for Repeat<A, R> where A: Parser<Input>,
R: Range,
Input: Copy[src]
R: Range,
Input: Copy
type Output = Vec<A::Output>
type Error = A::Error
fn parse(&mut self,
input: Input,
from: usize)
-> Result<Self::Output, Self::Error>
input: Input,
from: usize)
-> Result<Self::Output, Self::Error>