foundry_common::io::stdin

Function unwrap2

Source
pub fn unwrap2<A, B>(a: Option<A>, b: Option<B>) -> Result<(A, B)>
where A: FromStr, B: FromStr, A::Err: StdError + Send + Sync + 'static, B::Err: StdError + Send + Sync + 'static,
Expand description

Shortcut for (unwrap(a), unwrap(b)).