Function cni_format::from_str[][src]

pub fn from_str(text: &str) -> Result<HashMap<String, String>, &'static str>

Parses CNI format text and returns the resulting key/value store.

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.