[−][src]Trait competitive_hpp::prelude::source::Source
The main trait. Types implementing this trait can be used for source of input!
macro.
Required methods
fn next_token(&mut self) -> Option<&str>
Gets a whitespace-splitted next token.
fn is_empty(&mut self) -> bool
Check if tokens are empty
Provided methods
fn next_token_unwrap(&mut self) -> &str
Force gets a whitespace-splitted next token.
Implementations on Foreign Types
impl<'_, R, S> Source<R> for &'_ mut S where
R: BufRead,
S: Source<R>,
[src]
Loading content...
R: BufRead,
S: Source<R>,
Implementors
impl<R> Source<R> for LineSource<R> where
R: BufRead,
[src]
R: BufRead,
fn next_token(&mut self) -> Option<&str>
[src]
Gets a next token.
fn is_empty(&mut self) -> bool
[src]
Check if tokens are empty
impl<R> Source<R> for OnceSource<R> where
R: BufRead,
[src]
R: BufRead,