foundry_common::io::stdin

Function parse

Source
pub fn parse<T>(read_line: bool) -> Result<T>
where T: FromStr, T::Err: StdError + Send + Sync + 'static,
Expand description

Reads bytes from stdin into a String.

If read_line is true, stop at the first newline (the 0xA byte).