2 个版本
| 0.1.1 | 2020 年 8 月 31 日 |
|---|---|
| 0.1.0 | 2020 年 8 月 31 日 |
#6 in #option-t
4KB
unflatten
unflatten 是一个 (玩笑) 库,它提供了一个功能
use unflatten::Unflatten;
let option = Some("body once told me");
let unflattened = option.unflatten();
assert_eq!(unflattened, Some(Some("body once told me")));
等等,就这么一个吗?
是的。
真的吗?没有任何特性,什么都没有?
是的。
你为什么还要制作这个呢?
我不知道。
许可证
本项目采用 MIT 许可证。更多信息请参阅 LICENSE.txt。
lib.rs:
unflatten
unflatten 是一个 [玩笑] 库,它提供了一个功能
use unflatten::Unflatten;
let option = Some("body once told me");
let unflattened = option.unflatten();
assert_eq!(unflattened, Some(Some("body once told me")));