Reading

Trait Reading 

Source
pub trait Reading {
    // Required method
    fn read_line(&mut self) -> String;

    // Provided methods
    fn read<T>(&mut self) -> T
       where T: FromStr + Default { ... }
    fn read_vec<T>(&mut self) -> Vec<T>
       where T: FromStr + Default { ... }
}

Required Methods§

Source

fn read_line(&mut self) -> String

Provided Methods§

Source

fn read<T>(&mut self) -> T
where T: FromStr + Default,

Source

fn read_vec<T>(&mut self) -> Vec<T>
where T: FromStr + Default,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§