Struct io::OnceSource
source · pub struct OnceSource<R>where
R: BufRead,{ /* private fields */ }
Implementations§
source§impl<R> OnceSource<R>where
R: BufRead,
impl<R> OnceSource<R>where
R: BufRead,
pub fn new(source: R) -> OnceSource<R>
Trait Implementations§
source§impl<R> Source<R> for OnceSource<R>where
R: BufRead,
impl<R> Source<R> for OnceSource<R>where
R: BufRead,
fn next_token(&mut self) -> Option<String>
fn next_token_unwrap(&mut self) -> String
Auto Trait Implementations§
impl<R> Freeze for OnceSource<R>
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