pub struct ElasticBufferedReadStream<R: Read> { /* private fields */ }
Implementations§
Source§impl<R: Read> ElasticBufferedReadStream<R>
impl<R: Read> ElasticBufferedReadStream<R>
pub fn new(read: R) -> Self
pub fn buffer_len(&self) -> usize
Trait Implementations§
Source§impl<R: Read> Positioned for ElasticBufferedReadStream<R>
impl<R: Read> Positioned for ElasticBufferedReadStream<R>
Source§impl<R: Read> Resetable for ElasticBufferedReadStream<R>
impl<R: Read> Resetable for ElasticBufferedReadStream<R>
type Checkpoint = CheckPoint
fn checkpoint(&self) -> Self::Checkpoint
fn reset(&mut self, checkpoint: Self::Checkpoint)
Source§impl<R: Read> StreamOnce for ElasticBufferedReadStream<R>
impl<R: Read> StreamOnce for ElasticBufferedReadStream<R>
Source§type Range = u8
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.Source§type Position = u64
type Position = u64
Type which represents the position in a stream.
Ord
is required to allow parsers to determine which of two positions are further ahead.type Error = Errors<u8, u8, u64>
Source§fn uncons(&mut self) -> Result<u8, StreamErrorFor<Self>>
fn uncons(&mut self) -> Result<u8, StreamErrorFor<Self>>
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.Source§fn is_partial(&self) -> bool
fn is_partial(&self) -> bool
Returns
true
if this stream only contains partial input. Read moreAuto Trait Implementations§
impl<R> !Freeze for ElasticBufferedReadStream<R>
impl<R> !RefUnwindSafe for ElasticBufferedReadStream<R>
impl<R> !Send for ElasticBufferedReadStream<R>
impl<R> !Sync for ElasticBufferedReadStream<R>
impl<R> Unpin for ElasticBufferedReadStream<R>where
R: Unpin,
impl<R> !UnwindSafe for ElasticBufferedReadStream<R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more