Struct ByteLines
pub struct ByteLines<B> { /* private fields */ }
An iterator over lines from an instance of
std::io::BufRead.
This iterator is generally created by calling the
byte_lines
method on the
BufReadExt
trait.
Trait Implementations
impl<B: BufRead> Iterator for ByteLines<B>
type Item = Result<Vec<u8>, Error>;fn next(&mut self) -> Option<Result<Vec<u8>>>
impl<B: Debug> Debug for ByteLines<B>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<B> Freeze for ByteLines<B>
where
B: Freeze,
impl<B> RefUnwindSafe for ByteLines<B>
where
B: RefUnwindSafe,
impl<B> Send for ByteLines<B>
where
B: Send,
impl<B> Sync for ByteLines<B>
where
B: Sync,
impl<B> Unpin for ByteLines<B>
where
B: Unpin,
impl<B> UnsafeUnpin for ByteLines<B>
where
B: UnsafeUnpin,
impl<B> UnwindSafe for ByteLines<B>
where
B: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for ByteLines<B>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for ByteLines<B>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ByteLines<B>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ByteLines<B>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ByteLines<B>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ByteLines<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 ByteLines<B>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ByteLines<B>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>