[−][src]Struct combine::parser::sequence::Then
Trait Implementations
impl<P: Clone, F: Clone> Clone for Then<P, F>
[src]
impl<P: Copy, F: Copy> Copy for Then<P, F>
[src]
impl<Input, P, N, F> Parser<Input> for Then<P, F> where
Input: Stream,
F: FnMut(P::Output) -> N,
P: Parser<Input>,
N: Parser<Input>,
[src]
Input: Stream,
F: FnMut(P::Output) -> N,
P: Parser<Input>,
N: Parser<Input>,
type Output = N::Output
The type which is returned if the parser is successful.
type PartialState = (P::PartialState, Option<(bool, N)>, N::PartialState)
Determines the state necessary to resume parsing after more input is supplied. Read more
pub fn parse_partial(
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_first(
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_mode_impl<M>(
&mut self,
mode: M,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> where
M: ParseMode,
[src]
&mut self,
mode: M,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error> where
M: ParseMode,
pub fn add_error(&mut self, errors: &mut Tracked<<Input as StreamOnce>::Error>)
[src]
pub fn parse(
&mut self,
input: Input
) -> Result<(Self::Output, Input), <Input as StreamOnce>::Error>
[src]
&mut self,
input: Input
) -> Result<(Self::Output, Input), <Input as StreamOnce>::Error>
pub fn parse_with_state(
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> Result<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> Result<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_stream(
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_lazy(
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn parse_stream_partial(
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Input,
state: &mut Self::PartialState
) -> ParseResult<Self::Output, <Input as StreamOnce>::Error>
pub fn by_ref(&mut self) -> &mut SelfⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
where
Self: Sized,
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
Self: Sized,
pub fn with<P2>(self, p: P2) -> With<Self, P2> where
Self: Sized,
P2: Parser<Input>,
[src]
Self: Sized,
P2: Parser<Input>,
pub fn skip<P2>(self, p: P2) -> Skip<Self, P2> where
Self: Sized,
P2: Parser<Input>,
[src]
Self: Sized,
P2: Parser<Input>,
pub fn and<P2>(self, p: P2) -> (Self, P2) where
Self: Sized,
P2: Parser<Input>,
[src]
Self: Sized,
P2: Parser<Input>,
pub fn or<P2>(self, p: P2) -> Or<Self, P2> where
Self: Sized,
P2: Parser<Input, Output = Self::Output>,
[src]
Self: Sized,
P2: Parser<Input, Output = Self::Output>,
pub fn then<N, F>(self, f: F) -> Then<Self, F> where
Self: Sized,
F: FnMut(Self::Output) -> N,
N: Parser<Input>,
[src]
Self: Sized,
F: FnMut(Self::Output) -> N,
N: Parser<Input>,
pub fn then_partial<N, F>(self, f: F) -> ThenPartial<Self, F> where
Self: Sized,
F: FnMut(&mut Self::Output) -> N,
N: Parser<Input>,
[src]
Self: Sized,
F: FnMut(&mut Self::Output) -> N,
N: Parser<Input>,
pub fn then_ref<N, F>(self, f: F) -> ThenRef<Self, F> where
Self: Sized,
F: FnMut(&Self::Output) -> N,
N: Parser<Input>,
[src]
Self: Sized,
F: FnMut(&Self::Output) -> N,
N: Parser<Input>,
pub fn map<F, B>(self, f: F) -> Map<Self, F> where
Self: Sized,
F: FnMut(Self::Output) -> B,
[src]
Self: Sized,
F: FnMut(Self::Output) -> B,
pub fn map_input<F, B>(self, f: F) -> MapInput<Self, F> where
Self: Sized,
F: FnMut(Self::Output, &mut Input) -> B,
[src]
Self: Sized,
F: FnMut(Self::Output, &mut Input) -> B,
pub fn flat_map<F, B>(self, f: F) -> FlatMap<Self, F> where
Self: Sized,
F: FnMut(Self::Output) -> Result<B, <Input as StreamOnce>::Error>,
[src]
Self: Sized,
F: FnMut(Self::Output) -> Result<B, <Input as StreamOnce>::Error>,
pub fn message<S>(self, msg: S) -> Message<Self, S> where
Self: Sized,
S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,
[src]
Self: Sized,
S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,
pub fn expected<S>(self, msg: S) -> Expected<Self, S> where
Self: Sized,
S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,
[src]
Self: Sized,
S: for<'s> ErrorInfo<'s, Input::Token, Input::Range>,
pub fn silent(self) -> Silent<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn and_then<F, O, E>(self, f: F) -> AndThen<Self, F> where
Self: Parser<Input> + Sized,
F: FnMut(Self::Output) -> Result<O, E>,
E: Into<<Input::Error as ParseError<Input::Token, Input::Range, Input::Position>>::StreamError>,
[src]
Self: Parser<Input> + Sized,
F: FnMut(Self::Output) -> Result<O, E>,
E: Into<<Input::Error as ParseError<Input::Token, Input::Range, Input::Position>>::StreamError>,
pub fn iter(
self,
input: &mut Input
) -> Iter<'_, Input, Self, Self::PartialState, FirstMode>ⓘ where
Self: Parser<Input> + Sized,
[src]
self,
input: &mut Input
) -> Iter<'_, Input, Self, Self::PartialState, FirstMode>ⓘ where
Self: Parser<Input> + Sized,
pub fn partial_iter<'a, 's, M>(
self,
mode: M,
input: &'a mut Input,
partial_state: &'s mut Self::PartialState
) -> Iter<'a, Input, Self, &'s mut Self::PartialState, M>ⓘ where
Self: Parser<Input> + Sized,
M: ParseMode,
[src]
self,
mode: M,
input: &'a mut Input,
partial_state: &'s mut Self::PartialState
) -> Iter<'a, Input, Self, &'s mut Self::PartialState, M>ⓘ where
Self: Parser<Input> + Sized,
M: ParseMode,
pub fn boxed<'a>(
self
) -> Box<dyn Parser<Input, Output = Self::Output, PartialState = Self::PartialState> + 'a>ⓘNotable traits for Box<W, Global>
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
where
Self: Sized + 'a,
[src]
self
) -> Box<dyn Parser<Input, Output = Self::Output, PartialState = Self::PartialState> + 'a>ⓘ
Notable traits for Box<W, Global>
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
Self: Sized + 'a,
pub fn left<R>(self) -> Either<Self, R> where
Self: Sized,
R: Parser<Input, Output = Self::Output>,
[src]
Self: Sized,
R: Parser<Input, Output = Self::Output>,
pub fn right<L>(self) -> Either<L, Self> where
Self: Sized,
L: Parser<Input, Output = Self::Output>,
[src]
Self: Sized,
L: Parser<Input, Output = Self::Output>,
pub fn spanned(self) -> Spanned<Self> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl<P, F> RefUnwindSafe for Then<P, F> where
F: RefUnwindSafe,
P: RefUnwindSafe,
[src]
F: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, F> Send for Then<P, F> where
F: Send,
P: Send,
[src]
F: Send,
P: Send,
impl<P, F> Sync for Then<P, F> where
F: Sync,
P: Sync,
[src]
F: Sync,
P: Sync,
impl<P, F> Unpin for Then<P, F> where
F: Unpin,
P: Unpin,
[src]
F: Unpin,
P: Unpin,
impl<P, F> UnwindSafe for Then<P, F> where
F: UnwindSafe,
P: UnwindSafe,
[src]
F: UnwindSafe,
P: UnwindSafe,
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,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,