Skip to main content

value_of

Function value_of 

Source
pub fn value_of(key: &str, words: &[String]) -> Result<Value, String>
Expand description

A value for key from the words of config set KEY WORDS…: JSON when it parses as the key’s kind, else words read by the kind (cargo fmt for an argv, 40 for a number, on/off for a switch).

§Errors

An unknown key, or words that are no value of its kind.