Struct ByteRecords
pub struct ByteRecords<B> { /* private fields */ }
An iterator over records from an instance of
std::io::BufRead.
A byte record is any sequence of bytes terminated by a particular byte chosen by the caller. For example, NUL separated byte strings are said to be NUL-terminated byte records.
This iterator is generally created by calling the
byte_records
method on the
BufReadExt
trait.
Trait Implementations
impl<B: BufRead> Iterator for ByteRecords<B>
type Item = Result<Vec<u8>, Error>;fn next(&mut self) -> Option<Result<Vec<u8>>>
impl<B: Debug> Debug for ByteRecords<B>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<B> Freeze for ByteRecords<B>
where
B: Freeze,
impl<B> RefUnwindSafe for ByteRecords<B>
where
B: RefUnwindSafe,
impl<B> Send for ByteRecords<B>
where
B: Send,
impl<B> Sync for ByteRecords<B>
where
B: Sync,
impl<B> Unpin for ByteRecords<B>
where
B: Unpin,
impl<B> UnsafeUnpin for ByteRecords<B>
where
B: UnsafeUnpin,
impl<B> UnwindSafe for ByteRecords<B>
where
B: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for ByteRecords<B>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for ByteRecords<B>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ByteRecords<B>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ByteRecords<B>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ByteRecords<B>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ByteRecords<B>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ByteRecords<B>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ByteRecords<B>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>