Home
last modified time | relevance | path

Searched refs:sort_by_key (Results 1 – 25 of 33) sorted by relevance

12

/external/rust/crates/clap/src/util/
Dflat_set.rs56 pub fn sort_by_key<K, F>(&mut self, f: F) in sort_by_key() method
61 self.inner.sort_by_key(f); in sort_by_key()
/external/tensorflow/tensorflow/python/framework/
Dtest_combinations.py384 sort_by_key = lambda k: k[0] function
385 kwargs = OrderedDict(sorted(kwargs.items(), key=sort_by_key))
397 OrderedDict(sorted(list(combined.items()) + [(key, v)], key=sort_by_key))
/external/rust/crates/rayon/src/slice/
Dmod.rs479 macro_rules! sort_by_key { in par_sort_by_cached_key() macro
507 return sort_by_key!(u8); in par_sort_by_cached_key()
510 return sort_by_key!(u16); in par_sort_by_cached_key()
513 return sort_by_key!(u32); in par_sort_by_cached_key()
515 sort_by_key!(usize) in par_sort_by_cached_key()
/external/rust/crates/bindgen/codegen/postprocessing/
Dsort_semantically.rs15 items.sort_by_key(|item| match item { in visit_item_mod_mut()
/external/rust/crates/syn/tests/
Dtest_round_trip.rs208 e.args.sort_by_key(|arg| match arg { in normalize()
224 e.params.sort_by_key(|param| match param.kind { in normalize()
/external/rust/cxx/gen/build/src/
Ddeps.rs95 dirs.sort_by_key(|(sort_key, _dir)| *sort_key); in direct_dependencies()
/external/rust/crates/unicode-normalization/src/
Ddecompose.rs77 self.buffer[self.ready.end..].sort_by_key(|k| k.0); in sort_pending()
/external/crosvm/devices/src/pci/
Dpci_device.rs792 ioevents.sort_by_key(|ioevent| ioevent.1); in get_ioevent_requests()
796 range_pair.sort_by_key(|(new, _old)| new.0.base); in get_ioevent_requests()
1108 unregister_requests.sort_by_key(|request| request.addr); in test_get_ioevent_request()
1113 register_requests.sort_by_key(|request| request.addr); in test_get_ioevent_request()
/external/crosvm/devices/src/virtio/video/decoder/backend/
Dvaapi.rs585 .sort_by_key(|h| h.display_order()); in drain_ready_queue()
696 .sort_by_key(|h| h.display_order()); in decode_one_job()
896 .sort_by_key(|h| h.display_order()); in flush()
/external/crosvm/src/crosvm/sys/windows/
Dstats.rs121 exit_indices.sort_by_key(|i| Reverse(self.exit_durations[*i])); in fmt()
/external/rust/crates/protobuf/src/text_format/
Dprint.rs148 fields.sort_by_key(|(field_number, _)| *field_number); in print_to_internal()
/external/crosvm/devices/src/
Dbus_stats.rs255 device_indices.sort_by_key(|i| Reverse(self.device_stats[*i].get(*op).1)); in fmt()
/external/rust/cxx/gen/src/
Derror.rs107 errors.sort_by_key(|e| { in sort_syn_errors()
/external/rust/crates/plotters-backend/src/rasterizer/
Dpolygon.rs106 edges.sort_by_key(|((x1, y1), (x2, y2))| { in fill_polygon()
/external/crosvm/media/cros-codecs/src/decoders/h264/
Ddecoder.rs622 pics.sort_by_key(|h| std::cmp::Reverse(h.0.borrow().pic_num)); in sort_pic_num_descending()
626 pics.sort_by_key(|h| h.0.borrow().long_term_pic_num); in sort_long_term_pic_num_ascending()
630 pics.sort_by_key(|h| std::cmp::Reverse(h.0.borrow().frame_num_wrap)); in sort_frame_num_wrap_descending()
634 pics.sort_by_key(|h| h.0.borrow().long_term_frame_idx); in sort_long_term_frame_idx_ascending()
757 pics.sort_by_key(|h| std::cmp::Reverse(h.0.borrow().pic_order_cnt)); in sort_poc_descending()
761 pics.sort_by_key(|h| h.0.borrow().pic_order_cnt); in sort_poc_ascending()
/external/rust/crates/idna/src/
Dpunycode.rs159 self.insertions.sort_by_key(|(i, _)| *i); in decode()
/external/rust/crates/indexmap/tests/
Dquick.rs427 answer.sort_by_key(|t| t.0);
518 sorted.sort_by_key(key); in assert_sorted_by_key()
/external/crosvm/src/sys/windows/
Dirq_wait.rs255 .sort_by_key(|(idx, _)| std::cmp::Reverse(locked_irq_frequencies[**idx])); in run()
/external/rust/crates/regex-automata/src/
Dminimize.rs237 sets.sort_by_key(|s| s.len()); in initial_partitions()
/external/tensorflow/tensorflow/python/keras/
Dtesting_utils.py1067 sort_by_key = lambda k: k[0] function
1069 for key, values in sorted(kwargs.items(), key=sort_by_key):
/external/rust/crates/protobuf-parse/src/pure/convert/
Dmod.rs255 nested_messages.sort_by_key(|m| m.loc); in message()
655 messages.sort_by_key(|m| m.loc); in file_descriptor()
/external/rust/crates/clap/3.2.23/src/output/
Dusage.rs439 required_positionals.sort_by_key(|(ind, _)| *ind); // sort by index in get_required_usage_from()
/external/rust/crates/unicode-bidi/src/
Dimplicit.rs559 ret.sort_by_key(|r| r.start); in identify_bracket_pairs()
/external/rust/crates/tokio/src/runtime/blocking/
Dpool.rs267 workers.sort_by_key(|(id, _)| *id); in shutdown()
/external/rust/crates/walkdir/src/
Dlib.rs416 pub fn sort_by_key<K, F>(self, mut cmp: F) -> Self in sort_by_key() method

12