Lines Matching refs:Array
18 /// Array type, implemented using Vec.
21 /// * When the average number of Array entries exceeds 15 (estimated value), and query operation exists.
29 /// use ylong_json::Array;
31 /// let array = Array::new();
35 pub struct Array {
39 impl Array {
40 /// Creates an empty Array instance.
44 /// use ylong_json::Array;
46 /// let array = Array::new();
52 /// Gets length of Array.
56 /// use ylong_json::{Array, JsonValue};
58 /// let mut array = Array::new();
68 /// Determines whether Array is empty.
72 /// use ylong_json::{Array, JsonValue};
74 /// let mut array = Array::new();
84 /// Insert a new JsonValue at the end of Array.
88 /// use ylong_json::{Array, JsonValue};
90 /// let mut array = Array::new();
100 /// Pops the element at the end of Array.
104 /// use ylong_json::{Array, JsonValue};
106 /// let mut array = Array::new();
116 /// Gets a common iterator of Array.
120 /// use ylong_json::Array;
122 /// let array = Array::new();
129 /// Gets a mutable iterator of Array.
133 /// use ylong_json::Array;
135 /// let mut array = Array::new();
142 /// Returns a common reference to the specified index ** member ** in Array.
146 /// use ylong_json::{Array, JsonValue};
148 /// let mut array = Array::new();
157 /// Returns a mutable reference to the specified index ** member ** in Array.
161 /// use ylong_json::{Array, JsonValue};
163 /// let mut array = Array::new();
172 /// Returns a common reference to the trailing ** member ** in Array.。
176 /// use ylong_json::{Array, JsonValue};
178 /// let mut array = Array::new();
187 /// Returns a mutable reference to the trailing ** member ** in Array.
191 /// use ylong_json::{Array, JsonValue};
193 /// let mut array = Array::new();
202 /// Removes the node in Array with the specified index.
206 /// use ylong_json::{Array, JsonValue};
208 /// let mut array = Array::new();
226 impl PartialEq for Array {
233 /// use ylong_json::{Array, JsonValue};
235 /// let array1 = Array::new();
236 /// let array2 = Array::new();
237 /// let mut array3 = Array::new();
256 impl Display for Array {
269 impl Debug for Array {
277 use crate::{Array, JsonValue};
279 /// UT test for `Array::is_empty`.
285 /// 1. Creates some `Array`s.
286 /// 2. Calls `Array::is_empty`.
290 assert!(Array::new().is_empty());
294 /// UT test for `Array::pop`.
300 /// 1. Creates some `Array`s.
301 /// 2. Calls `Array::pop`.
310 /// UT test for `Array::iter_mut`.
316 /// 1. Creates some `Array`s.
317 /// 2. Calls `Array::iter_mut`.
327 /// UT test for `Array::last`.
333 /// 1. Creates some `Array`s.
334 /// 2. Calls `Array::last`.
341 let array = Array::new();
345 /// UT test for `Array::remove`.
351 /// 1. Creates some `Array`s.
352 /// 2. Calls `Array::remove`.
361 /// UT test for `Array::eq`.
367 /// 1. Creates some `Array`s.
368 /// 2. Calls `Array::eq`.
381 /// UT test for `Array::fmt`.
387 /// 1. Creates some `Array`s.
388 /// 2. Calls `Array::fmt`.