combine::stream

Trait Positioned

Source
pub trait Positioned: StreamOnce {
    // Required method
    fn position(&self) -> Self::Position;
}
Expand description

A type which has a position.

Required Methods§

Source

fn position(&self) -> Self::Position

Returns the current position of the stream.

Implementations on Foreign Types§

Source§

impl<'a> Positioned for &'a str

Source§

fn position(&self) -> Self::Position

Source§

impl<'a, T> Positioned for &'a [T]
where T: Clone + PartialEq,

Source§

fn position(&self) -> Self::Position

Implementors§

Source§

impl<'a, T> Positioned for SliceStream<'a, T>
where T: PartialEq + 'a,

Source§

impl<I> Positioned for BufferedStream<I>

Source§

impl<I, X, E> Positioned for State<I, X>
where I: StreamOnce, X: Positioner<I::Item>, E: StreamError<I::Item, I::Range>, I::Error: ParseError<I::Item, I::Range, X::Position, StreamError = E> + ParseError<I::Item, I::Range, I::Position, StreamError = E>,

Source§

impl<S> Positioned for Stream<S>

Source§

impl<S> Positioned for PartialStream<S>
where S: Positioned,