bookdata::parsing

Function parse_opt

Source
pub fn parse_opt<T: FromStr>(s: &str) -> Result<Option<T>>
where T::Err: StdError + Sync + Send + 'static,
Expand description

Parse a possibly-empty string into an option.