try_read_vec

Function try_read_vec 

Source
pub fn try_read_vec<T>(n: usize) -> Result<Vec<T>, ReadFromError<T>>
where T: ReadFrom,
Expand description

Call ReadInto::try_read_n on stdin.

§Panics

If ReadInto::try_read_n panics.

§Errors

If this function is called in multiple threads, the behavior is undefined, possibly causing a deadlock.

If ReadInto::try_read_n returns an error.