Struct combine::primitives::ReadStream
[−]
[src]
pub struct ReadStream<R> { /* fields omitted */ }
Trait Implementations
impl<R: Read> StreamOnce for ReadStream<R>
[src]
type Item = u8
The type of items which is yielded from this stream.
type Range = u8
The type of a range of items yielded from this stream. Types which do not a have a way of yielding ranges of items should just use the Self::Item
for this type. Read more
type Position = usize
Type which represents the position in a stream. Ord
is required to allow parsers to determine which of two positions are further ahead. Read more
fn uncons(&mut self) -> Result<u8, Error<u8, u8>>
Takes a stream and removes its first item, yielding the item and the rest of the elements. Returns Err
if no element could be retrieved. Read more
fn position(&self) -> Self::Position
Returns the current position of the stream.