Function parse_vars

Source
pub fn parse_vars<T, U>(
    s: &str,
) -> Result<(T, U), Box<dyn Error + Send + Sync + 'static>>
where T: FromStr, T::Err: Error + Send + Sync + 'static, U: FromStr, U::Err: Error + Send + Sync + 'static,
Expand description

Parse a single Var from a string of the format “KEY=VALUE”.

Note that if several “=” characters are present in the string, only the first one will be considered as a separator and the others will be treated as being part of the VALUE.

§Errors

This function will return an error if no “=” character was found.