Home
last modified time | relevance | path

Searched refs:DropCounter (Results 1 – 7 of 7) sorted by relevance

/external/rust/crates/rayon/tests/
Dsort-panic-safe.rs18 struct DropCounter { struct
24 impl PartialEq for DropCounter { argument
30 impl PartialOrd for DropCounter { implementation
39 impl Ord for DropCounter { implementation
45 impl Drop for DropCounter { implementation
134 .map(|id| DropCounter { in sort_panic_safe()
/external/rust/crates/smallvec/src/
Dtests.rs168 struct DropCounter<'a>(&'a Cell<i32>); in into_iter_drop() struct
170 impl<'a> Drop for DropCounter<'a> { in into_iter_drop() implementation
178 let mut v: SmallVec<[DropCounter<'_>; 2]> = SmallVec::new(); in into_iter_drop()
179 v.push(DropCounter(&cell)); in into_iter_drop()
186 let mut v: SmallVec<[DropCounter<'_>; 2]> = SmallVec::new(); in into_iter_drop()
187 v.push(DropCounter(&cell)); in into_iter_drop()
188 v.push(DropCounter(&cell)); in into_iter_drop()
195 let mut v: SmallVec<[DropCounter<'_>; 2]> = SmallVec::new(); in into_iter_drop()
196 v.push(DropCounter(&cell)); in into_iter_drop()
197 v.push(DropCounter(&cell)); in into_iter_drop()
[all …]
/external/rust/crates/crossbeam-channel/tests/
Dlist.rs379 struct DropCounter; in drops() struct
381 impl Drop for DropCounter { in drops() implementation
394 let (s, r) = unbounded::<DropCounter>(); in drops()
405 s.send(DropCounter).unwrap(); in drops()
412 s.try_send(DropCounter).unwrap(); in drops()
Darray.rs489 struct DropCounter; in drops() struct
491 impl Drop for DropCounter { in drops() implementation
504 let (s, r) = bounded::<DropCounter>(50); in drops()
515 s.send(DropCounter).unwrap(); in drops()
522 s.send(DropCounter).unwrap(); in drops()
Dzero.rs391 struct DropCounter; in drops() struct
393 impl Drop for DropCounter { in drops() implementation
405 let (s, r) = bounded::<DropCounter>(0); in drops()
416 s.send(DropCounter).unwrap(); in drops()
/external/rust/crates/rayon/src/iter/collect/
Dtest.rs83 let counter = DropCounter::default(); in produces_items_with_no_complete()
290 let counter = DropCounter::default(); in left_produces_fewer_items_drops()
316 struct DropCounter { struct
323 impl DropCounter { argument
/external/rust/crates/rayon/src/iter/
Dtest.rs349 let a = vec![DropCounter(&c); 10]; in check_drops()
362 struct DropCounter<'a>(&'a AtomicUsize); in check_drops() struct
363 impl<'a> Drop for DropCounter<'a> { in check_drops() implementation
370 impl<'a> ProducerCallback<DropCounter<'a>> for Partial { in check_drops()
374 P: Producer<Item = DropCounter<'a>>, in check_drops()