Function redirect_stdin

Source
pub fn redirect_stdin<T>(
    input: impl AsRef<[u8]>,
    f: impl FnOnce() -> T,
) -> Result<T>