pub struct LineSource<R: BufRead> { /* private fields */ }
Expand description
Source reading stream line by line.
It is a wrapper for BufRead
. You can create LineSource
from any type implementing
BufRead
.
Implementations§
Source§impl<R: BufRead> LineSource<R>
impl<R: BufRead> LineSource<R>
Sourcepub fn new(reader: R) -> LineSource<R>
pub fn new(reader: R) -> LineSource<R>
Creates a LineSource
by specified BufRead
.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for LineSource<R>where
R: Freeze,
impl<R> RefUnwindSafe for LineSource<R>where
R: RefUnwindSafe,
impl<R> Send for LineSource<R>where
R: Send,
impl<R> Sync for LineSource<R>where
R: Sync,
impl<R> Unpin for LineSource<R>where
R: Unpin,
impl<R> UnwindSafe for LineSource<R>where
R: UnwindSafe,
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