Lines Matching refs:from_str
156 /// use ylong_json::from_str;
171 /// assert_eq!(expected, from_str(str).unwrap())
173 pub fn from_str<'a, T>(str: &'a str) -> Result<T, Error>
847 use crate::deserializer::{from_slice, from_str};
1038 /// 1.Uses deserializer::from_str method to deserialize struct.
1046 assert_eq!(expected, from_str(str).unwrap());
1052 assert_eq!(expected, from_str(str).unwrap());
1058 assert_eq!(expected, from_str(str).unwrap());
1073 assert_eq!(expected, from_str(str).unwrap());
1085 assert_eq!(expected, from_str(str).unwrap());
1090 let res = from_str::<Test>(str_abnormal);
1095 let res = from_str::<Test>(str_abnormal);
1100 let res = from_str::<Test>(str_abnormal);
1105 let res = from_str::<Test>(str_abnormal);
1110 let res = from_str::<Test>(str_abnormal);