Source

Trait 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>