Function cni_format::from_str [−][src]
pub fn from_str(text: &str) -> Result<HashMap<String, String>, String>
Expand description
Parses CNI format text and returns the resulting key/value store. The parsing options are set to the default values.
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.