Home
last modified time | relevance | path

Searched refs:Array (Results 1 - 16 of 16) sorted by relevance

/commonlibrary/rust/ylong_json/src/value/array/
H A Dvec.rs18 /// 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 { structure names
39 impl Array { impls
40 /// Creates an empty Array instance.
44 /// use ylong_json::Array;
46 /// let array = Array::new();
52 /// Gets length of Array
[all...]
H A Dlinked_list.rs17 /// Array type, implemented using LinkedList.
20 /// * When the average number of Array entries does not exceed 15 (estimated value).
22 /// * When the average number of Array entries exceeds 15 (estimated value), but do not or rarely made query operation.
29 /// use ylong_json::Array;
31 /// let array = Array::new();
34 pub struct Array { structure names
38 impl Array { impls
39 /// Creates an empty Array instance.
43 /// use ylong_json::Array;
45 /// let array = Array
[all...]
/commonlibrary/rust/ylong_json/src/
H A Dvalue.rs19 pub use array::Array;
52 /// 5.Array: Array type
78 /// Array type
79 Array(Array),
103 Self::Array(a) => Display::fmt(a, f), in fmt()
179 /// Creates an instance of JsonValue for Array type. in fmt()
183 /// use ylong_json::{JsonValue, Array}; in fmt()
185 /// let value = JsonValue::new_array(Array in fmt()
[all...]
H A Dlib.rs28 Array::new()
31 let mut array = Array::new();
63 pub use value::{Array, Index, JsonValue, Number, Object};
H A Dencoder.rs14 use crate::{consts::*, Array, Error, JsonValue, Number, Object};
50 JsonValue::Array(array) => self.encode_array(array), in encode_value()
97 /// Encodes Array
98 fn encode_array(&mut self, array: &Array) -> Result<(), Error> { in encode_array()
188 JsonValue::Array(array) => self.encode_array(array), in encode_value()
227 /// Encodes Array
228 fn encode_array(&mut self, array: &Array) -> Result<(), Error> { in encode_array()
H A Dstates.rs16 consts::*, deserializer::Deserializer, Array, Error, JsonValue, Number, Object, ParseError,
449 // Creates an Array to store value. in parse_array()
450 let mut array = Array::new(); in parse_array()
481 Ok(JsonValue::Array(array)) in parse_array()
945 assert_eq!(parse_array(&mut deserializer).unwrap(), Array::new().into()); in ut_parse_array()
949 assert_eq!(parse_array(&mut deserializer).unwrap(), Array::new().into()); in ut_parse_array()
H A Dadapter.rs117 JsonValue::Array(_) => JsonValue::Array(Array::new()),
427 Box::into_raw(Box::from(JsonValue::Array(Array::new()))) as *mut YlongJson
555 // Uses method 'remove' of Array, but not the method 'remove' of underlying data structure.
556 if let Some(v) = Array::remove(array, index as usize) {
2162 /// (Uses the method 'remove' of Array.)
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/bounded/
H A Dmod.rs22 use crate::sync::mpsc::bounded::array::Array;
55 channel: Tx<Array<T>>,
89 channel: Rx<Array<T>>,
118 let array = Array::new(number); in bounded_channel()
124 fn new(channel: Tx<Array<T>>) -> BoundedSender<T> { in new()
315 fn new(channel: Rx<Array<T>>) -> BoundedReceiver<T> { in new()
H A Darray.rs30 /// The flag marks that Array is closed.
39 pub(crate) struct Array<T> {
48 unsafe impl<T: Send> Send for Array<T> {}
49 unsafe impl<T: Send> Sync for Array<T> {}
57 impl<T> Array<T> { impls
58 pub(crate) fn new(capacity: usize) -> Array<T> {
66 Array {
189 impl<T> Container for Array<T> {
207 impl<T> Drop for Array<T> {
227 array: &'a Array<
[all...]
/commonlibrary/rust/ylong_json/tests/
H A Dylong_json_sdv_test.rs14 use ylong_json::{Array, JsonValue, Object};
207 assert_eq!($json[4]["array1"], Array::new().into());
208 assert_eq!($json[4]["array2"], Array::new().into());
213 assert_eq!($json[4]["array3"][4], Array::new().into());
219 assert_eq!($json[4]["array4"][4], Array::new().into());
228 assert_eq!($json[5]["object3"]["key5"], Array::new().into());
234 assert_eq!($json[5]["object4"]["key5"], Array::new().into());
243 assert_eq!($json[7]["key_value2"], Array::new().into());
289 json["array"] = Array::new().into(); in sdv_json_modify()
296 assert_eq!(json["array"], Array in sdv_json_modify()
[all...]
H A Dsdv_adapt_serde_test.rs213 "key5":{"Array":[]},"key6":{"Object":null}},
218 "key5": {"Array":[]}, "key6": {
315 Array(Vec<InnerValue>),
417 key5: InnerValue::Array(vec![]), in sdv_adapt_serde_example_three()
425 key5: InnerValue::Array(vec![]), in sdv_adapt_serde_example_three()
/commonlibrary/rust/ylong_json/src/value/
H A Darray.rs17 pub use linked_list::Array;
22 pub use vec::Array;
H A Dindex.rs14 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 { in index_into()
71 /// Uses the array subscript to visit the Array type of JsonValue
74 /// If the visited JsonValue is not Array typ
[all...]
/commonlibrary/c_utils/base/include/
H A Dsorted_vector.h111 inline const TYPE* Array() const { return vec_.data(); } in Array() function in OHOS::SortedVector
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_sorted_vector_test.cpp307 const int* pi = svec.Array(); in HWTEST_F()
/commonlibrary/c_utils/base/test/benchmarktest/sorted_vector_benchmark_test/
H A Dsorted_vector_benchmark_test.cpp371 const int* pi = svec.Array(); in BENCHMARK_F()

Completed in 12 milliseconds