Function from_str
pub fn from_str<T>(s: &str) -> Result<T, Error>where
T: DeserializeOwned + 'static,Expand description
Deserialize a YAML document into the target type.
Direct re-export of [crate::from_str] — same signature,
same behaviour.
§Examples
use noyalib::compat::serde_yaml as syml;
let n: i32 = syml::from_str("42").unwrap();
assert_eq!(n, 42);