Home
last modified time | relevance | path

Searched refs:remove (Results 1 - 25 of 27) sorted by relevance

12

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dlinked_list.rs16 //! operation does not release memory, and the `remove` operation needs to
131 pub(crate) unsafe fn remove(&mut self, node: NonNull<L>) -> Option<NonNull<L>> {
258 /// UT test cases for `push_front()` and `remove()`.
280 assert!(list.remove(node1_ptr).is_some()); in ut_link_list_remove()
281 assert!(list.remove(node1_ptr).is_none()); in ut_link_list_remove()
284 assert!(list.remove(node2_ptr).is_some()); in ut_link_list_remove()
285 assert!(list.remove(node2_ptr).is_none()); in ut_link_list_remove()
286 assert!(list.remove(node3_ptr).is_some()); in ut_link_list_remove()
287 assert!(list.remove(node3_ptr).is_none()); in ut_link_list_remove()
294 assert!(list.remove(node2_pt in ut_link_list_remove()
[all...]
H A Dslots.rs58 /// The index of slot to remove is invalid.
163 /// assert_eq!(slots.remove(zero), Ok("zero"));
166 pub fn remove(&mut self, key: usize) -> Result<T, SlotsError> { in remove() functions
359 let res = slots.remove(index); in ut_slots_push_back()
379 let res = slots.remove(index); in ut_slots_push_back()
418 /// UT test cases for Slots::remove().
433 assert_eq!(slots.remove(0), Ok(0)); in ut_slots_remove()
488 let res = slots.remove(remove_index); in ut_slots_huge_data_remove()
520 let res = slots.remove(index); in ut_slots_remove_and_pop()
525 let res = slots.remove(remove_inde in ut_slots_remove_and_pop()
[all...]
/commonlibrary/rust/ylong_json/src/value/array/
H A Dvec.rs214 /// let second = array.remove(1);
218 pub fn remove(&mut self, index: usize) -> Option<JsonValue> { in remove() functions
222 Some(self.inner.remove(index)) in remove()
345 /// UT test for `Array::remove`. in fmt()
352 /// 2. Calls `Array::remove`. in fmt()
357 assert_eq!(array.remove(3), None); in fmt()
358 assert_eq!(array.remove(0), Some(JsonValue::new_number(1.into()))); in fmt()
H A Dlinked_list.rs216 /// let second = array.remove(1);
220 pub fn remove(&mut self, index: usize) -> Option<JsonValue> { in remove() functions
/commonlibrary/rust/ylong_json/src/value/object/
H A Dbtree.rs127 /// assert_eq!(object.remove("null"), Some(JsonValue::Null));
130 pub fn remove(&mut self, key: &str) -> Option<JsonValue> { in remove() functions
131 self.inner.remove(key) in remove()
H A Dvec.rs133 /// assert_eq!(object.remove("null"), Some(JsonValue::Null));
136 pub fn remove(&mut self, key: &str) -> Option<JsonValue> { in remove() functions
138 Some(self.inner.remove(pos).1) in remove()
H A Dlinked_list.rs131 /// assert_eq!(object.remove("null"), Some(JsonValue::Null));
134 pub fn remove(&mut self, key: &str) -> Option<JsonValue> { in remove() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dwake_list.rs62 pub fn remove(&self, key: usize) -> Result<Waker, SlotsError> { in remove() functions
64 inner.wake_list.remove(key) in remove()
H A Dsemaphore_inner.rs247 let _ = self.semaphore.waker_list.remove(self.waker_index.unwrap()); in drop()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dredirect.rs50 let _ = request.headers_mut().remove(header_name);
89 let _ = request.headers_mut().remove(header_name);
H A Dalt_svc.rs118 lock.remove(&key);
H A Ddispatcher.rs492 self.senders.remove(&stream_id);
514 if let Some(mut task) = self.curr_message.remove(&key) {
519 self.senders.remove(&key);
/commonlibrary/rust/ylong_http/ylong_http/tests/
H A Dsdv_http_headers.rs50 assert_eq!(headers.remove("key"), Some(value)); in sdv_client_send_request_repeatedly()
/commonlibrary/rust/ylong_http/ylong_http/src/h3/qpack/
H A Ddecoder.rs98 self.streams.remove(&id);
189 let mut message = match self.streams.remove(&stream_id) {
323 match self.streams.remove(&stream_id) { in finish()
354 self.blocked.remove(&stream_id); in stream_cancel()
355 self.streams.remove(&stream_id); in stream_cancel()
H A Dencoder.rs135 self.tracked_stream.remove(&(stream_id as u64)); in ack()
153 if let Some(mut fields) = self.tracked_stream.remove(&stream_id) { in cancel_stream()
/commonlibrary/rust/ylong_json/src/value/
H A Dindex.rs132 /// let ret = value.remove(0);
139 return array.remove(*self); in index_remove()
254 /// let ret = value.remove("key");
260 return object.remove(self); in index_remove()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/
H A Dhttp2.rs165 headers.remove(*specific_header); in remove_connection_specific_headers()
171 headers.remove("te"); in remove_connection_specific_headers()
194 .remove("host") in build_pseudo_headers()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_unique_fd_test.cpp56 EXPECT_EQ(remove(testfilename), 0); in TearDownTestCase()
/commonlibrary/c_utils/base/src/
H A Ddirectory_ex.cpp306 UTILS_LOGD("Failed to remove some subfile under path: %{public}s", path.c_str()); in ForceRemoveDirectory()
319 if (remove(path.c_str()) != 0) { in ForceRemoveDirectory()
320 UTILS_LOGE("Failed to remove root dir: %{public}s: %{public}s ", path.c_str(), strerror(errno)); in ForceRemoveDirectory()
330 return remove(fileName.c_str()) == 0; in RemoveFile()
/commonlibrary/rust/ylong_http/ylong_http/src/h3/
H A Ddecoder.rs117 self.streams.remove(&stream_id); in cancel_stream()
130 self.streams.remove(&id); in finish_stream()
147 let mut stream = if let Some(stream) = self.streams.remove(&id) { in decode()
/commonlibrary/c_utils/base/test/benchmarktest/unique_fd_benchmark_test/
H A Dunique_fd_benchmark_test.cpp58 AssertEqual(remove(TEST_FILE_NAME), 0, "remove(TEST_FILE_NAME) did not equal 0 as expected.", state);
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
H A Djoin_set.rs126 if !list.wait_list.remove(entry) { in wake_by_ref()
/commonlibrary/rust/ylong_json/src/
H A Dvalue.rs652 /// Trys to remove a member form an Object or Array. If the member is found by Index, in fmt()
665 /// value.remove("key"); in fmt()
668 pub fn remove<I: index::Index>(&mut self, index: I) -> Option<JsonValue> { in fmt() functions
1713 /// UT test for `JsonValue::remove`.
1720 /// 2. Calls `JsonValue::remove` on them.
1731 object.remove("key2"); in ut_json_value_remove()
1741 array.remove(1); in ut_json_value_remove()
H A Dadapter.rs555 // 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) {
577 array.remove(index as usize);
877 if let Some(v) = object.remove(index) {
903 object.remove(index);
2161 /// 1. Calls `ylong_json_remove_array_item_by_index` to remove an item in the array by index.
2162 /// (Uses the method 'remove' of Array.)
2219 /// (Uses the method 'remove' of underlying data structure.)
2461 /// 1. Calls `ylong_json_remove_array_node` to remove a
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Dwheel.rs365 self.slots[slot].remove(clock_entry);

Completed in 18 milliseconds

12