[][src]Trait proconio::source::Readable

pub trait Readable {
    type Output;
    fn read<R: BufRead, S: Source<R>>(source: &mut S) -> Self::Output;
}

A trait representing which type can be read from Source.

If you want to read your own type using input!, you can implement this trait for your type. Alternatively, you can add #[derive_readable] if you put use proconio_derive::derive_readable in your source. It automatically implements Readable if all members of your type are Readable.

Associated Types

type Output

Loading content...

Required methods

fn read<R: BufRead, S: Source<R>>(source: &mut S) -> Self::Output

Loading content...

Implementors

impl Readable for Bytes[src]

type Output = Vec<u8>

impl Readable for Chars[src]

type Output = Vec<char>

impl Readable for Isize1[src]

type Output = isize

impl Readable for Usize1[src]

type Output = usize

impl<T: FromStr> Readable for T where
    T::Err: Debug
[src]

type Output = T

Loading content...