pub fn get_input_from<T>(
env: &impl Read,
name: impl AsRef<str>,
) -> Result<Option<T>, <T as ParseInput>::Error>where
T: ParseInput,
Expand description
Gets the value of an input from an environment.
Attempts to parse as T if a value is present, other returns Ok(None)
.
ยงErrors
If the variable cannot be parsed.