Struct Lines
pub struct Lines<B> { pub(in ::io::util) buf: B }
An iterator over the lines of an instance of BufRead.
This struct is generally created by calling lines on a BufRead.
Please see the documentation of lines for more details.
Fields
buf: B
Trait Implementations
impl<B: BufRead> Iterator for Lines<B>
type Item = Result<String, Error>;fn next(&mut self) -> Option<Result<String>>
impl<B: Debug> Debug for Lines<B>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<B> Freeze for Lines<B>
where
B: Freeze,
impl<B> RefUnwindSafe for Lines<B>
where
B: RefUnwindSafe,
impl<B> Send for Lines<B>
where
B: Send,
impl<B> Sync for Lines<B>
where
B: Sync,
impl<B> Unpin for Lines<B>
where
B: Unpin,
impl<B> UnsafeUnpin for Lines<B>
where
B: UnsafeUnpin,
impl<B> UnwindSafe for Lines<B>
where
B: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for Lines<B>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for Lines<B>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Lines<B>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Lines<B>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Lines<B>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Lines<B>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Lines<B>
impl<T, U> Into<U> for Lines<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 Lines<B>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Lines<B>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>