[][src]Struct contest_algorithms::scanner::Scanner

pub struct Scanner<R> { /* fields omitted */ }

Reads white-space separated tokens one at a time.

Methods

impl<R: BufRead> Scanner<R>[src]

pub fn new(reader: R) -> Self[src]

pub fn token<T: FromStr>(&mut self) -> T[src]

Use "turbofish" syntax token::() to select data type of next token.

Panics

Panics if there's an I/O error or if the token cannot be parsed as T.

Auto Trait Implementations

impl<R> Send for Scanner<R> where
    R: Send

impl<R> Unpin for Scanner<R> where
    R: Unpin

impl<R> Sync for Scanner<R> where
    R: Sync

impl<R> UnwindSafe for Scanner<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Scanner<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]