/commonlibrary/rust/ylong_json/src/value/ |
H A D | object.rs | 17 pub use btree::Object; 22 pub use linked_list::Object; 27 pub use vec::Object;
|
H A D | index.rs | 14 use crate::{Array, JsonValue, Object}; 147 /// Uses key to visit Object type JsonValue, and returns a common reference to corresponding JsonValue. 152 /// 2.The searched Object type does not contain the key. 156 /// use ylong_json::{JsonValue, Object}; 161 /// // Object type 162 /// let mut object = Object::new(); 165 /// let value = JsonValue::Object(object); 174 if let JsonValue::Object(ref object) = value { in index_into() 180 /// Uses key to visit Object type JsonValue, and returns a mutable reference to corresponding JsonValue. 182 /// If the visited JsonValue is not Object typ [all...] |
/commonlibrary/rust/ylong_json/src/ |
H A D | value.rs | 22 pub use object::Object; 54 /// 6.Object: Object type 81 /// Object type 82 Object(Object), 104 Self::Object(o) => Display::fmt(o, f), in fmt() 192 /// Creates an instance of JsonValue for Object type. in fmt() 196 /// use ylong_json::{JsonValue, Object}; in fmt() 198 /// let value = JsonValue::new_object(Object in fmt() [all...] |
H A D | lib.rs | 43 Object::new() 46 let mut object = Object::new(); 63 pub use value::{Array, Index, JsonValue, Number, Object};
|
H A D | encoder.rs | 14 use crate::{consts::*, Array, Error, JsonValue, Number, Object}; 51 JsonValue::Object(object) => self.encode_object(object), in encode_value() 138 /// Encodes Object 139 fn encode_object(&mut self, object: &Object) -> Result<(), Error> { in encode_object() 189 JsonValue::Object(object) => self.encode_object(object), in encode_value() 240 /// Encodes Object 241 fn encode_object(&mut self, object: &Object) -> Result<(), Error> { in encode_object()
|
H A D | states.rs | 16 consts::*, deserializer::Deserializer, Array, Error, JsonValue, Number, Object, ParseError, 146 // Creates an Object to store key-value pairs. in parse_object() 147 let mut object = Object::new(); in parse_object() 193 Ok(JsonValue::Object(object)) in parse_object() 1006 Object::new().into() in ut_parse_object()
|
H A D | adapter.rs | 118 JsonValue::Object(_) => JsonValue::Object(Object::new()), 691 Box::into_raw(Box::from(JsonValue::Object(Object::new()))) as *mut YlongJson
|
/commonlibrary/rust/ylong_json/tests/ |
H A D | ylong_json_sdv_test.rs | 14 use ylong_json::{Array, JsonValue, Object}; 214 assert_eq!($json[4]["array3"][5], Object::new().into()); 220 assert_eq!($json[4]["array4"][5], Object::new().into()); 222 assert_eq!($json[5]["object1"], Object::new().into()); 223 assert_eq!($json[5]["object2"], Object::new().into()); 229 assert_eq!($json[5]["object3"]["key6"], Object::new().into()); 235 assert_eq!($json[5]["object4"]["key6"], Object::new().into()); 236 assert_eq!($json[5]["object5"]["nest1"]["nest2"]["nest3"]["nest4"], Object::new().into()); 244 assert_eq!($json[7]["key_value3"], Object::new().into()); 290 json["object"] = Object in sdv_json_modify() [all...] |
H A D | sdv_adapt_serde_test.rs | 213 "key5":{"Array":[]},"key6":{"Object":null}}, 219 "Object":null } 316 Object(StructNull), 418 key6: InnerValue::Object(StructNull), in sdv_adapt_serde_example_three() 426 key6: InnerValue::Object(StructNull), in sdv_adapt_serde_example_three()
|
/commonlibrary/rust/ylong_json/src/value/object/ |
H A D | btree.rs | 18 /// Object type, implemented using the standard library Btree. 22 /// and the creation and query ratio is greater than 600.(Number of queries for 1 Object creation). 31 /// use ylong_json::Object; 33 /// let object = Object::new(); 37 pub struct Object { structure names 41 impl Object { impls 42 /// Creates an empty Object. 46 /// use ylong_json::Object; 48 /// let object = Object::new(); 57 /// Gets the length of Object [all...] |
H A D | vec.rs | 18 /// Object type, implemented using Vec. 21 /// 1. When the average number of entries x under Object is about 15 <= x <= 100. 23 /// 2. When the average number of Object entries x is about 101 <= x <= 1024, and the creation to 30 /// * Only opening the 'vec_object' feature, this Object type can be used , and it conflicts with other Objects. 32 /// * This Object ** does not provide the ** de-duplicate function. 35 /// * The output order of this Object is the same as the insertion order. 38 /// use ylong_json::Object; 40 /// let object = Object::new(); 44 pub struct Object { structure names 48 impl Object { impls [all...] |
H A D | linked_list.rs | 18 /// Object type, implemented using LinkedList. 21 /// * When the average number of items under Object is less than 15 (estimated value). 23 /// * When the average number of items under Object exceeds 15 (estimated), but do not or rarely made the query operation. 26 /// * Only opening the 'list_object' feature, this Object type can be used , and it conflicts with other objects. 28 /// * This Object ** does not provide the ** de-duplicate function. 31 /// * The output order of this Object is the same as the insertion order. 35 /// use ylong_json::Object; 37 /// let object = Object::new(); 40 pub struct Object { structure names 44 impl Object { impls [all...] |