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

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

Loading content...

Required methods

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

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...
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy