English | 简体中文
Rust Box 这个 Crate 提供了一组用于Rust编程的奇葩工具:
The main rust-box
crate just re-exports tools from smaller subcrates:
stream-ext
Streams 的扩展特征,提供各种方便的组合函数。queue-ext
队列的扩展特征,可将队列的pop()函数转换为Stream,push()函数转换为Sender。task-exec-queue
一个任务执行队列。可限制任务并发执行数量,可控制同一类任务执行顺序。event
事件std-ext
扩展标准库功能,使标准库用起来更方便mpsc
基于queue-ext实现的MPSC信道dequemap
具有Map功能的双端队列加入下面依赖到你的 Cargo.toml
:
toml
[dependencies]
rust-box = "0.6"
Licensed under either of
at your option.