Struct proconio::source::line::LineSource
source · 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> 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