Struct proconio::source::once::OnceSource
source · pub struct OnceSource<R: BufRead> { /* private fields */ }
Expand description
Source reading entire content for the first time.
It is a wrapper for BufRead
. You can create OnceSource
from any type implementing
BufRead
.
Implementations§
source§impl<R: BufRead> OnceSource<R>
impl<R: BufRead> OnceSource<R>
sourcepub fn new(source: R) -> OnceSource<R>
pub fn new(source: R) -> OnceSource<R>
Creates Source
using specified reader of BufRead
.
Trait Implementations§
Auto Trait Implementations§
impl<R> RefUnwindSafe for OnceSource<R>where R: RefUnwindSafe,
impl<R> Send for OnceSource<R>where R: Send,
impl<R> Sync for OnceSource<R>where R: Sync,
impl<R> Unpin for OnceSource<R>where R: Unpin,
impl<R> UnwindSafe for OnceSource<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