drop_ok
- This crate defines
DropOk<E>
trait andimpl
forResult
. DropOk<E>
trait has.drop_ok(self) -> Result<(), E>
function.- This is a syntax sugar for
.map(|_|())
.
Useful scene
- See also: <tests/test.rs>
Note
"I don't need it, because ..."
- Yes, your are right to your world.
- But, I tired to type/see
.map(|_|())
. So I'm happy with.drop_ok()
.
- But, I tired to type/see
LICENSE
Author
- USAGI.NETWORK / Usagi Ito https://github.com/usagi/