Lines Matching refs:Object

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 {
41 impl Object {
42 /// Creates an empty Object.
46 /// use ylong_json::Object;
48 /// let object = Object::new();
57 /// Gets the length of Object.
61 /// use ylong_json::{JsonValue, Object};
63 /// let mut object = Object::new();
72 /// Determines whether the Object is empty.
76 /// use ylong_json::{JsonValue, Object};
78 /// let mut object = Object::new();
87 /// Checks whether the specified key exists in the Object.
91 /// use ylong_json::{JsonValue, Object, Number};
93 /// let mut object = Object::new();
103 /// Inserts the specified key and value into the Object, and replaces the value if the key already exists in the Object.
107 /// use ylong_json::{JsonValue, Object};
109 /// let mut object = Object::new();
118 /// Removes the element under the specified Key from Object.
122 /// use ylong_json::{JsonValue, Object, Number};
124 /// let mut object = Object::new();
134 /// Gets a common iterator of Object.
138 /// use ylong_json::Object;
140 /// let object = Object::new();
147 /// Gets a mutable iterator of Object.
151 /// use ylong_json::Object;
153 /// let mut object = Object::new();
160 /// Gets a common reference to the element in Object with the specified key.
164 /// use ylong_json::{JsonValue, Object, Number};
166 /// let mut object = Object::new();
176 /// Gets a mutable reference to the element in Object with the specified key.
180 /// use ylong_json::{JsonValue, Object};
182 /// let mut object = Object::new();
193 impl Display for Object {
206 impl Debug for Object {
214 use crate::{JsonValue, Object};
216 /// UT test for `Object::iter_mut`.
222 /// 1. Creates some `Object`s.
223 /// 2. Calls `Object::iter_mut`.
236 /// UT test for `Object::fmt`.
242 /// 1. Creates a `Object`.
243 /// 2. Calls `Object::fmt` on it.
258 /// UT test for `Object::eq`.
264 /// 1. Creates a `Object`.
265 /// 2. Calls `Object::eq` on it.