mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-02 09:40:15 +00:00
1687af89e0
We need to use Result<> to manage error flow, at least on the methods API. This way it will finally feel idiomatic Rust and more concise. Also, we can't return a non Result from main. - rename NcResult to NcIntResult. - new NcError & NcResult types. - new error![] macro to reduce boilerplate. - change return type of NcDirect methods to NcResult. - refactor several examples to return NcResult: direct-cursor, poc-direct & poc-kittyzapper. - BONUS: fix test not stopping notcurses context. - update lib doc-comment. - fix typo in readme. |
||
---|---|---|
.. | ||
.cargo | ||
build | ||
examples | ||
src | ||
tests | ||
Cargo.toml | ||
README.md |