Trait input::Source

source ·
pub trait Source<R: BufRead> {
    // Required method
    fn next_token(&mut self) -> Option<String>;

    // Provided method
    fn next_token_unwrap(&mut self) -> String { ... }
}

Required Methods§

source

fn next_token(&mut self) -> Option<String>

Provided Methods§

Implementations on Foreign Types§

source§

impl<R: BufRead, S: Source<R>> Source<R> for &mut S

source§

fn next_token(&mut self) -> Option<String>

Implementors§

source§

impl<R: BufRead> Source<R> for OnceSource<R>