2 releases
0.1.1 | Aug 31, 2020 |
---|---|
0.1.0 | Aug 31, 2020 |
#4 in #option-t
4KB
unflatten
unflatten
is a (joke of a) library which provides one thing:
use unflatten::Unflatten;
let option = Some("body once told me");
let unflattened = option.unflatten();
assert_eq!(unflattened, Some(Some("body once told me")));
wait, that's it?
yeah.
really? no features, nothing?
yep.
why did you even make this?
i don't know.
License
This project is licensed under the MIT license. See LICENSE.txt for more information.
lib.rs
:
unflatten
unflatten
is a [joke of a] library which provides one thing:
use unflatten::Unflatten;
let option = Some("body once told me");
let unflattened = option.unflatten();
assert_eq!(unflattened, Some(Some("body once told me")));