Lines Matching refs:Object

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 {
48 impl Object {
49 /// Creates an empty Object.
53 /// use ylong_json::Object;
55 /// let object = Object::new();
62 /// Gets the length of Object.
66 /// use ylong_json::{JsonValue, Object};
68 /// let mut object = Object::new();
77 /// Determines whether the Object is empty.
81 /// use ylong_json::{JsonValue, Object};
83 /// let mut object = Object::new();
92 /// Checks whether the specified key exists in the Object.
96 /// use ylong_json::{JsonValue, Object, Number};
98 /// let mut object = Object::new();
108 /// Inserts the specified key and value into an Object, appending them to the end without deduplication.
112 /// use ylong_json::{JsonValue, Object};
114 /// let mut object = Object::new();
123 /// Removes the element under the specified key from the Object.If there is an element with
124 /// the same name in the Object, deletes the one with the smallest subscript.
128 /// use ylong_json::{JsonValue, Object, Number};
130 /// let mut object = Object::new();
141 /// Gets a common iterator of Object.
145 /// use ylong_json::Object;
147 /// let object = Object::new();
154 /// Gets a mutable iterator of Object.
158 /// use ylong_json::Object;
160 /// let mut object = Object::new();
167 /// Gets a common reference to the element in Object with the specified key.
172 /// use ylong_json::{JsonValue, Object, Number};
174 /// let mut object = Object::new();
184 /// Gets a mutable reference to the element in Object with the specified key.
189 /// use ylong_json::{JsonValue, Object};
191 /// let mut object = Object::new();
214 impl PartialEq for Object {
222 /// use ylong_json::{Object, JsonValue};
224 /// let object1 = Object::new();
225 /// let object2 = Object::new();
226 /// let mut object3 = Object::new();
245 impl Display for Object {
258 impl Debug for Object {
266 use crate::{JsonValue, Object};
268 /// UT test for `Object::contains_key`.
274 /// 1. Creates a `Object`.
275 /// 2. Calls `Object::contains_key` on it.
284 /// UT test for `Object::iter_mut`.
290 /// 1. Creates a `Object`.
291 /// 2. Calls `Object::iter_mut` on it.
304 /// UT test for `Object::get_mut`.
310 /// 1. Creates a `Object`.
311 /// 2. Calls `Object::get_mut` on it.
323 /// UT test for `Object::fmt`.
329 /// 1. Creates a `Object`.
330 /// 2. Calls `Object::fmt` on it.
345 /// UT test for `Object::eq`.
351 /// 1. Creates a `Object`.
352 /// 2. Calls `Object::eq` on it.