Home
last modified time | relevance | path

Searched refs:from_text (Results 1 - 5 of 5) sorted by relevance

/commonlibrary/rust/ylong_json/tests/
H A Dylong_json_sdv_test.rs269 let json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_parse()
272 let json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_parse()
275 let json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_parse()
281 let mut json = JsonValue::from_text(json_text).unwrap(); in sdv_json_modify()
329 let mut json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_output()
338 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
346 let mut json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_output()
355 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
363 let mut json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_output()
372 let temp = JsonValue::from_text( in sdv_json_output()
[all...]
/commonlibrary/rust/ylong_json/examples/
H A Dylong_json_example.rs37 let value = JsonValue::from_text(JSON_TEXT).unwrap(); in main()
/commonlibrary/rust/ylong_json/src/
H A Dencoder.rs398 let value = JsonValue::from_text($input).unwrap();
H A Dvalue.rs713 /// let value = JsonValue::from_text(text.as_bytes()).unwrap(); in fmt()
717 pub fn from_text<T: AsRef<[u8]>>(text: T) -> Result<Self, Error> { in fmt() functions
732 /// let value = JsonValue::from_text(text.as_bytes()).unwrap(); in fmt()
749 /// let value = JsonValue::from_text(text.as_bytes()).unwrap(); in fmt()
770 /// let value = JsonValue::from_text(text.as_bytes()).unwrap(); in fmt()
788 /// let value = JsonValue::from_text(text.as_bytes()).unwrap(); in fmt()
819 Self::from_text(s) in from_str()
H A Dadapter.rs49 let value = match JsonValue::from_text(slice) {

Completed in 7 milliseconds