Struct nom::Or [−][src]
pub struct Or<F, G> { /* fields omitted */ }
Implementation of Parser::or
Trait Implementations
impl<'a, I: Clone, O, E: ParseError<I>, F: Parser<I, O, E>, G: Parser<I, O, E>> Parser<I, O, E> for Or<F, G>
[src]
fn parse(&mut self, i: I) -> IResult<I, O, E>
[src]
fn map<G, O2>(self, g: G) -> Map<Self, G, O> where
G: Fn(O) -> O2,
Self: Sized,
[src]
G: Fn(O) -> O2,
Self: Sized,
fn flat_map<G, H, O2>(self, g: G) -> FlatMap<Self, G, O> where
G: Fn(O) -> H,
H: Parser<I, O2, E>,
Self: Sized,
[src]
G: Fn(O) -> H,
H: Parser<I, O2, E>,
Self: Sized,
fn and_then<G, O2>(self, g: G) -> AndThen<Self, G, O> where
G: Parser<O, O2, E>,
Self: Sized,
[src]
G: Parser<O, O2, E>,
Self: Sized,
fn and<G, O2>(self, g: G) -> And<Self, G> where
G: Parser<I, O2, E>,
Self: Sized,
[src]
G: Parser<I, O2, E>,
Self: Sized,
fn or<G>(self, g: G) -> Or<Self, G> where
G: Parser<I, O, E>,
Self: Sized,
[src]
G: Parser<I, O, E>,
Self: Sized,
fn into<O2: From<O>, E2: From<E>>(self) -> Into<Self, O, O2, E, E2> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<F, G> Send for Or<F, G> where
F: Send,
G: Send,
F: Send,
G: Send,
impl<F, G> Sync for Or<F, G> where
F: Sync,
G: Sync,
F: Sync,
G: Sync,
impl<F, G> Unpin for Or<F, G> where
F: Unpin,
G: Unpin,
F: Unpin,
G: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,