from_str

Function from_str 

Source
pub fn from_str<T: FromRon>(s: &str) -> Result<T>
Expand description

Parse a RON string into a type that implements FromRon.

ยงExample

use ron2::from_str;

let value: i32 = ron2::from_str("42")?;
assert_eq!(value, 42);