Trait combine::stream::ResetStream [−][src]
pub trait ResetStream: StreamOnce { type Checkpoint: Clone; fn checkpoint(&self) -> Self::Checkpoint; fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>; }
Expand description
A StreamOnce
which can create checkpoints which the stream can be reset to
Associated Types
type Checkpoint: Clone
[src]Required methods
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn checkpoint(&self) -> Self::Checkpoint
[src]Creates a Checkpoint
at the current position which can be used to reset the stream
later to the current position
Implementations on Foreign Types
type Checkpoint = Self
type Checkpoint = Self
type Checkpoint = I::Checkpoint
Implementors
type Checkpoint = Self
impl<Input, X, S> ResetStream for combine::stream::position::Stream<Input, X> where
Input: ResetStream,
X: Positioner<Input::Token>,
S: StreamError<Input::Token, Input::Range>,
Input::Error: ParseError<Input::Token, Input::Range, X::Position, StreamError = S>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position, StreamError = S>,
[src]
impl<Input, X, S> ResetStream for combine::stream::position::Stream<Input, X> where
Input: ResetStream,
X: Positioner<Input::Token>,
S: StreamError<Input::Token, Input::Range>,
Input::Error: ParseError<Input::Token, Input::Range, X::Position, StreamError = S>,
Input::Error: ParseError<Input::Token, Input::Range, Input::Position, StreamError = S>,
[src]type Checkpoint = Stream<Input::Checkpoint, X::Checkpoint>
impl<S> ResetStream for combine::stream::easy::Stream<S> where
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
[src]
impl<S> ResetStream for combine::stream::easy::Stream<S> where
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
[src]This is supported on crate feature
std
only.type Checkpoint = S::Checkpoint
type Checkpoint = S::Checkpoint
type Checkpoint = S::Checkpoint
type Checkpoint = S::Checkpoint
impl<S, E> ResetStream for combine::stream::span::Stream<S, E> where
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
E: ParseError<S::Token, S::Range, Span<S::Position>>,
S::Error: ParseErrorInto<S::Token, S::Range, S::Position>,
<S::Error as ParseError<S::Token, S::Range, S::Position>>::StreamError: StreamErrorInto<S::Token, S::Range>,
[src]
impl<S, E> ResetStream for combine::stream::span::Stream<S, E> where
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
E: ParseError<S::Token, S::Range, Span<S::Position>>,
S::Error: ParseErrorInto<S::Token, S::Range, S::Position>,
<S::Error as ParseError<S::Token, S::Range, S::Position>>::StreamError: StreamErrorInto<S::Token, S::Range>,
[src]type Checkpoint = S::Checkpoint
type Checkpoint = S::Checkpoint
type Checkpoint = Self