Struct munch::Or
[−]
[src]
pub struct Or<A, B>(pub A, pub B);
Trait Implementations
impl<A: Copy, B: Copy> Copy for Or<A, B>
[src]
impl<A: Clone, B: Clone> Clone for Or<A, B>
[src]
fn clone(&self) -> Or<A, B>
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, B: Debug> Debug for Or<A, B>
[src]
impl<A: PartialEq, B: PartialEq> PartialEq for Or<A, B>
[src]
fn eq(&self, __arg_0: &Or<A, B>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Or<A, B>) -> bool
This method tests for !=
.
impl<A, B, Input> Parser<Input> for Or<A, B> where A: Parser<Input>,
B: Parser<Input, Output=A::Output, Error=A::Error>,
Input: Copy
[src]
B: Parser<Input, Output=A::Output, Error=A::Error>,
Input: Copy
type Output = 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>