pub struct ReaderSource<R: Read> { /* private fields */ }Available on crate feature
std only.Expand description
Line-buffered Source over any std::io::Read. Each pull
returns one line (without the trailing newline).
Implementations§
Source§impl<R: Read> ReaderSource<R>
impl<R: Read> ReaderSource<R>
Sourcepub fn with_capacity(capacity: usize, reader: R) -> Self
pub fn with_capacity(capacity: usize, reader: R) -> Self
Wrap a reader with a specific BufReader capacity.
Trait Implementations§
Source§impl<R: Read> Source for ReaderSource<R>
impl<R: Read> Source for ReaderSource<R>
Auto Trait Implementations§
impl<R> Freeze for ReaderSource<R>where
R: Freeze,
impl<R> RefUnwindSafe for ReaderSource<R>where
R: RefUnwindSafe,
impl<R> Send for ReaderSource<R>where
R: Send,
impl<R> Sync for ReaderSource<R>where
R: Sync,
impl<R> Unpin for ReaderSource<R>where
R: Unpin,
impl<R> UnsafeUnpin for ReaderSource<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ReaderSource<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