← 返回卡片

原书出处

Rust编程之道

08 字符串与集合类型 8.2 集合类型

第1版 · 核验版本的摘录快照 · 导入于 2026-11-24T13:43:56.948Z

为O(n),最坏情况为O(nlogn)。

代码清单 8-45 中的 sort 系列方法均可被直接替换为 sort_unstable、sort_unstable_by 和sort_unstable_by_key方法。

但是sort_unstable 系列方法

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Rust编程之道/_epub-src/text/part0014_split_002.html

EPUB SHA-256:585074c6844ba06a529a7623f659130564e9907ec38a9d661f661974f9787ac8