Struct combine::parser::error::Unexpected [−][src]
Trait Implementations
impl<I: Clone, T: Clone> Clone for Unexpected<I, T> where
I: Stream,
I::Item: Clone,
I::Range: Clone,
[src]
I: Stream,
I::Item: Clone,
I::Range: Clone,
fn clone(&self) -> Unexpected<I, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<I, T> Parser for Unexpected<I, T> where
I: Stream,
[src]
I: Stream,
type Input = I
The type which is taken as input for the parser. The type must implement the Stream
trait
which allows the parser to read items from the type. Read more
type Output = T
The type which is returned if the parser is successful.
type PartialState = ()
Determines the state necessary to resume parsing after more input is supplied. Read more
fn parse_lazy(&mut self, input: &mut Self::Input) -> ConsumedResult<T, I>
[src]
fn add_error(
&mut self,
errors: &mut Tracked<<Self::Input as StreamOnce>::Error>
)
[src]
&mut self,
errors: &mut Tracked<<Self::Input as StreamOnce>::Error>
)
fn easy_parse<I>(
&mut self,
input: I
) -> Result<(Self::Output, I), ParseError<I>> where
I: Stream,
Stream<I>: StreamOnce<Item = I::Item, Range = I::Range, Error = ParseError<Stream<I>>, Position = I::Position>,
I::Position: Default,
Self: Sized + Parser<Input = Stream<I>>,
[src]
&mut self,
input: I
) -> Result<(Self::Output, I), ParseError<I>> where
I: Stream,
Stream<I>: StreamOnce<Item = I::Item, Range = I::Range, Error = ParseError<Stream<I>>, Position = I::Position>,
I::Position: Default,
Self: Sized + Parser<Input = Stream<I>>,
fn parse(
&mut self,
input: Self::Input
) -> Result<(Self::Output, Self::Input), <Self::Input as StreamOnce>::Error>
[src]
&mut self,
input: Self::Input
) -> Result<(Self::Output, Self::Input), <Self::Input as StreamOnce>::Error>
fn parse_with_state(
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> Result<Self::Output, <Self::Input as StreamOnce>::Error>
[src]
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> Result<Self::Output, <Self::Input as StreamOnce>::Error>
fn parse_stream(
&mut self,
input: &mut Self::Input
) -> ParseResult<Self::Output, Self::Input>
[src]
&mut self,
input: &mut Self::Input
) -> ParseResult<Self::Output, Self::Input>
fn parse_stream_consumed(
&mut self,
input: &mut Self::Input
) -> ConsumedResult<Self::Output, Self::Input>
[src]
&mut self,
input: &mut Self::Input
) -> ConsumedResult<Self::Output, Self::Input>
fn parse_stream_consumed_partial(
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> ConsumedResult<Self::Output, Self::Input>
[src]
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> ConsumedResult<Self::Output, Self::Input>
fn parse_first(
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> ConsumedResult<Self::Output, Self::Input>
[src]
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> ConsumedResult<Self::Output, Self::Input>
fn parse_partial(
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> ConsumedResult<Self::Output, Self::Input>
[src]
&mut self,
input: &mut Self::Input,
state: &mut Self::PartialState
) -> ConsumedResult<Self::Output, Self::Input>
fn by_ref(&mut self) -> &mut SelfⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
where
Self: Sized,
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
Self: Sized,
fn with<P2>(self, p: P2) -> With<Self, P2> where
Self: Sized,
P2: Parser<Input = Self::Input>,
[src]
Self: Sized,
P2: Parser<Input = Self::Input>,
fn skip<P2>(self, p: P2) -> Skip<Self, P2> where
Self: Sized,
P2: Parser<Input = Self::Input>,
[src]
Self: Sized,
P2: Parser<Input = Self::Input>,
fn and<P2>(self, p: P2) -> (Self, P2) where
Self: Sized,
P2: Parser<Input = Self::Input>,
[src]
Self: Sized,
P2: Parser<Input = Self::Input>,
fn or<P2>(self, p: P2) -> Or<Self, P2> where
Self: Sized,
P2: Parser<Input = Self::Input, Output = Self::Output>,
[src]
Self: Sized,
P2: Parser<Input = Self::Input, Output = Self::Output>,
fn then<N, F>(self, f: F) -> Then<Self, F> where
Self: Sized,
F: FnMut(Self::Output) -> N,
N: Parser<Input = Self::Input>,
[src]
Self: Sized,
F: FnMut(Self::Output) -> N,
N: Parser<Input = Self::Input>,
fn then_partial<N, F>(self, f: F) -> ThenPartial<Self, F> where
Self: Sized,
F: FnMut(&mut Self::Output) -> N,
N: Parser<Input = Self::Input>,
[src]
Self: Sized,
F: FnMut(&mut Self::Output) -> N,
N: Parser<Input = Self::Input>,
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,
fn flat_map<F, B>(self, f: F) -> FlatMap<Self, F> where
Self: Sized,
F: FnMut(Self::Output) -> Result<B, <Self::Input as StreamOnce>::Error>,
[src]
Self: Sized,
F: FnMut(Self::Output) -> Result<B, <Self::Input as StreamOnce>::Error>,
fn message<S>(self, msg: S) -> Message<Self> where
Self: Sized,
S: Into<Info<<Self::Input as StreamOnce>::Item, <Self::Input as StreamOnce>::Range>>,
[src]
Self: Sized,
S: Into<Info<<Self::Input as StreamOnce>::Item, <Self::Input as StreamOnce>::Range>>,
fn expected<S>(self, msg: S) -> Expected<Self> where
Self: Sized,
S: Into<Info<<Self::Input as StreamOnce>::Item, <Self::Input as StreamOnce>::Range>>,
[src]
Self: Sized,
S: Into<Info<<Self::Input as StreamOnce>::Item, <Self::Input as StreamOnce>::Range>>,
fn silent(self) -> Silent<Self> where
Self: Sized,
[src]
Self: Sized,
fn and_then<F, O, E, I>(self, f: F) -> AndThen<Self, F> where
Self: Parser<Input = I> + Sized,
F: FnMut(Self::Output) -> Result<O, E>,
I: Stream,
E: Into<<I::Error as ParseError<I::Item, I::Range, I::Position>>::StreamError>,
[src]
Self: Parser<Input = I> + Sized,
F: FnMut(Self::Output) -> Result<O, E>,
I: Stream,
E: Into<<I::Error as ParseError<I::Item, I::Range, I::Position>>::StreamError>,
fn iter(
self,
input: &mut Self::Input
) -> Iter<'_, Self, Self::PartialState, FirstMode>ⓘ where
Self: Parser + Sized,
[src]
self,
input: &mut Self::Input
) -> Iter<'_, Self, Self::PartialState, FirstMode>ⓘ where
Self: Parser + Sized,
fn partial_iter<'a, 's, M>(
self,
mode: M,
input: &'a mut Self::Input,
partial_state: &'s mut Self::PartialState
) -> Iter<'a, Self, &'s mut Self::PartialState, M>ⓘ where
Self: Parser + Sized,
M: ParseMode,
[src]
self,
mode: M,
input: &'a mut Self::Input,
partial_state: &'s mut Self::PartialState
) -> Iter<'a, Self, &'s mut Self::PartialState, M>ⓘ where
Self: Parser + Sized,
M: ParseMode,
fn boxed<'a>(
self
) -> Box<dyn Parser<Input = Self::Input, Output = Self::Output, PartialState = Self::PartialState> + 'a>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
where
Self: Sized + 'a,
[src]
self
) -> Box<dyn Parser<Input = Self::Input, Output = Self::Output, PartialState = Self::PartialState> + 'a>ⓘ
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Self: Sized + 'a,
fn left<R>(self) -> Either<Self, R>ⓘ where
Self: Sized,
R: Parser<Input = Self::Input, Output = Self::Output>,
[src]
Self: Sized,
R: Parser<Input = Self::Input, Output = Self::Output>,
fn right<L>(self) -> Either<L, Self>ⓘ where
Self: Sized,
L: Parser<Input = Self::Input, Output = Self::Output>,
[src]
Self: Sized,
L: Parser<Input = Self::Input, Output = Self::Output>,
Auto Trait Implementations
impl<I, T> RefUnwindSafe for Unexpected<I, T> where
<I as StreamOnce>::Item: RefUnwindSafe,
<I as StreamOnce>::Range: RefUnwindSafe,
<I as StreamOnce>::Item: RefUnwindSafe,
<I as StreamOnce>::Range: RefUnwindSafe,
impl<I, T> Send for Unexpected<I, T> where
<I as StreamOnce>::Item: Send,
<I as StreamOnce>::Range: Send,
<I as StreamOnce>::Item: Send,
<I as StreamOnce>::Range: Send,
impl<I, T> Sync for Unexpected<I, T> where
<I as StreamOnce>::Item: Sync,
<I as StreamOnce>::Range: Sync,
<I as StreamOnce>::Item: Sync,
<I as StreamOnce>::Range: Sync,
impl<I, T> Unpin for Unexpected<I, T> where
<I as StreamOnce>::Item: Unpin,
<I as StreamOnce>::Range: Unpin,
<I as StreamOnce>::Item: Unpin,
<I as StreamOnce>::Range: Unpin,
impl<I, T> UnwindSafe for Unexpected<I, T> where
<I as StreamOnce>::Item: UnwindSafe,
<I as StreamOnce>::Range: UnwindSafe,
<I as StreamOnce>::Item: UnwindSafe,
<I as StreamOnce>::Range: 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 R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
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>,