Function read_vec

Source
pub fn read_vec<T>() -> Vec<T>
where <T as FromStr>::Err: Debug, T: FromStr,
Expand description

Reads a single line and converts it to a vector of type T

§Example

use soi_io::read_vec;
let v: Vec<usize> = read_vec();

§Panics

Panics if the input is not a valid vector of type T