cargo::core::gc

Function maybe_parse_time_span

source
fn maybe_parse_time_span(span: &str) -> Option<Duration>
Expand description

Parses a time span string.

Returns None if the value is not valid. See parse_time_span if you need a variant that generates an error message.