[−][src]Trait combine::stream::ResetStream
A StreamOnce
which can create checkpoints which the stream can be reset to
Associated Types
type Checkpoint: Clone
Required methods
fn checkpoint(&self) -> Self::Checkpoint
Creates a Checkpoint
at the current position which can be used to reset the stream
later to the current position
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>
Attempts to reset the stream to an earlier position.
Implementations on Foreign Types
impl<'a> ResetStream for &'a str where
Self: StreamOnce,
[src]
Self: StreamOnce,
type Checkpoint = Self
fn checkpoint(&self) -> Self
[src]
fn reset(&mut self, checkpoint: Self) -> Result<(), Self::Error>
[src]
impl<'a, T> ResetStream for &'a [T] where
Self: StreamOnce,
[src]
Self: StreamOnce,
type Checkpoint = Self
fn checkpoint(&self) -> Self
[src]
fn reset(&mut self, checkpoint: Self) -> Result<(), Self::Error>
[src]
impl<'a, I: ?Sized> ResetStream for &'a mut I where
I: ResetStream,
[src]
I: ResetStream,
type Checkpoint = I::Checkpoint
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>
[src]
Implementors
impl<'a, T> ResetStream for SliceStream<'a, T> where
Self: StreamOnce,
[src]
Self: StreamOnce,
type Checkpoint = Self
fn checkpoint(&self) -> Self
[src]
fn reset(&mut self, checkpoint: Self) -> Result<(), Self::Error>
[src]
impl<Input> ResetStream for combine::stream::buffered::Stream<Input> where
Input: Positioned,
[src]
Input: Positioned,
type Checkpoint = usize
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>
[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]
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>,
type Checkpoint = Stream<Input::Checkpoint, X::Checkpoint>
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>
[src]
impl<S> ResetStream for combine::stream::easy::Stream<S> where
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
[src]
S: ResetStream + Positioned,
S::Token: PartialEq,
S::Range: PartialEq,
type Checkpoint = S::Checkpoint
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>
[src]
impl<S> ResetStream for CompleteStream<S> where
S: ResetStream,
[src]
S: ResetStream,
type Checkpoint = S::Checkpoint
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), S::Error>
[src]
impl<S> ResetStream for MaybePartialStream<S> where
S: ResetStream,
[src]
S: ResetStream,
type Checkpoint = S::Checkpoint
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), S::Error>
[src]
impl<S> ResetStream for PartialStream<S> where
S: ResetStream,
[src]
S: ResetStream,
type Checkpoint = S::Checkpoint
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), S::Error>
[src]
impl<S, U> ResetStream for combine::stream::state::Stream<S, U> where
S: ResetStream,
[src]
S: ResetStream,
type Checkpoint = S::Checkpoint
fn checkpoint(&self) -> Self::Checkpoint
[src]
fn reset(&mut self, checkpoint: Self::Checkpoint) -> Result<(), Self::Error>
[src]
impl<T: Clone> ResetStream for IteratorStream<T> where
Self: StreamOnce,
[src]
Self: StreamOnce,