Function cni_format::from_str_opts [−][src]
pub fn from_str_opts(
text: &str,
opts: Opts
) -> Result<HashMap<String, String>, String>
Expand description
Parses CNI format text and returns the resulting key/value store, using the specified options.
This just constructs a CniParser
and collects it.
For more information see the crate level documentation.
Errors
Returns an Err
if the given text is not in a valid CNI format. The Err
will contain a message explaining the error.