foundry_common::io::stdin

Function unwrap_vec

Source
pub fn unwrap_vec<T>(value: Vec<T>) -> Result<Vec<T>>
where T: FromStr, T::Err: StdError + Send + Sync + 'static,
Expand description

Reads stdin into a String and parses it as Vec<T> using whitespaces as delimiters if the given Vec<T> is empty.