Function nccl::parse_into_value
[−]
[src]
pub fn parse_into_value(into: String) -> Value
Parses a String into a Value, first attempting bool, i64, and f64.
Examples: ``` match parse_into_value("32.3") { Value::Float(f) => println!("value is float: {}", f), _ => panic!("it's broke yo"), }
match parse_into_value("something silly") { Value::String(s) => println!("none of the above: {}", s), _ => panic!("it's really broke yo") } ```