Function get_input

Source
pub fn get_input<T>(
    name: impl AsRef<str>,
) -> Result<Option<T>, <T as ParseInput>::Error>
where T: ParseInput,
Expand description

Gets the value of an input.

Attempts to parse as T if a value is present, other returns Ok(None).

ยงErrors

If the variable cannot be parsed.