Lines Matching refs:Array
14 use crate::{Array, JsonValue, Object};
32 /// Uses the array subscript to visit the Array type of JsonValue
38 /// 2.The subscript exceeds the current length of the Array type.
42 /// use ylong_json::{JsonValue, Array};
47 /// // Array type
48 /// let mut array = Array::new();
53 /// let value = JsonValue::Array(array);
63 if let JsonValue::Array(ref array) = value {
71 /// Uses the array subscript to visit the Array type of JsonValue
74 /// If the visited JsonValue is not Array type, the JsonValue will be
75 /// replaced with an empty Array type and visits again with that subscript.
77 /// If the visited JsonValue is Array type, but the subscript exceeds the length of the array,
82 /// use ylong_json::{JsonValue, Array};
88 /// let mut array = Array::new();
90 /// assert_eq!(value, JsonValue::Array(array));
92 /// // Array type
93 /// let mut array = Array::new();
95 /// let mut value = JsonValue::Array(array);
108 if let JsonValue::Array(ref mut array) = value {
116 *value = JsonValue::new_array(Array::new());
120 /// Removes the element at the specified location of Array type JsonValue and returns that content.
124 /// use ylong_json::{JsonValue, Array};
126 /// let mut array = Array::new();
129 /// let mut value: JsonValue = JsonValue::Array(array);
137 if let JsonValue::Array(ref mut array) = value {
318 use crate::{Array, Index, JsonValue, Object};